00001
00002
00003
00004
00005
00006
00011 #ifndef LCDTWI_H_
00012 #define LCDTWI_H_
00013 #include "twi.h"
00014 #include <util/delay.h>
00019 int LCDInit(uint8_t addr);
00020
00026 int LCD_putc(uint8_t addr,char c);
00027
00034 int LCD_puts(uint8_t addr, char * string);
00035
00041 int LCD_setpos(uint8_t addr, uint8_t position);
00042
00047 int LCD_clear(uint8_t addr);
00048
00053 int LCD_enable_blink(int8_t addr);
00054
00059 int LCD_enable_cursor(uint8_t addr);
00060
00065 int LCD_disable_cursor(uint8_t addr);
00066
00071 int LCD_return(uint8_t addr);
00072
00073 #define LINE1 0x00
00074 #define LINE2 0x40
00075
00076 #endif