/********************************************************************** * LCD display driver for SB1602 module * 4 bit transfer mode * * See lcd4.c for details. **********************************************************************/ #define LCD_CMD 0 #define LCD_DATA 1 /* set cursor position */ #define Set_Pos(x) Putc_LCD4(((x)&0x7F)|0x80, LCD_CMD) /* clear display */ #define Clr_LCD4 (Putc_LCD4(0x01, LCD_CMD),__delay_ms(2)) /* initialize the LCD */ extern void Init_LCD4(void); /* write one byte character or command */ extern void Putc_LCD4(char , char); /* write character string */ extern void Puts_LCD4(char *); /* shift display n times */ void Shift_LN(int); void Shift_RN(int); /* shift display to right */ #define Shift_R Putc_LCD4(0x1C, LCD_CMD) /* shift display to left */ #define Shift_L Putc_LCD4(0x18, LCD_CMD) /* CGRAM write */ /***** EEPROM Setting *****/ void CGRAM(char, char *);