Gary Richardson
/
testLCD
Test of LCD code
Embed:
(wiki syntax)
Show/hide line numbers
lcd_i2c.h
00001 #ifndef H_LCD_I2C 00002 #define H_LCD_I2C 00003 00004 #define BIT0 1 00005 #define BIT1 2 00006 #define BIT2 4 00007 #define BIT3 8 00008 #define BIT4 0x10 00009 #define BIT5 0x20 00010 #define BIT6 0x40 00011 #define BIT7 0x80 00012 00013 #define DISPLAY_WIDTH 20 00014 #define DISPLAY_NUMROWS 2 00015 #define NUPDATE (DISPLAY_WIDTH*6) 00016 00017 extern int initLcd(int i2cAddress, int frequency); 00018 extern int lcdWriteMsg(char *msg); 00019 extern int lcdClearDisplay(void); 00020 extern int lcdPositionCursor(char row, char col); 00021 00022 #endif
Generated on Tue Jul 12 2022 21:13:13 by 1.7.2