Gary Richardson
/
testLCD
Test of LCD code
Diff: lcd_i2c.h
- Revision:
- 0:a4d44dfd2f03
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lcd_i2c.h Fri May 30 12:24:56 2014 +0000 @@ -0,0 +1,22 @@ +#ifndef H_LCD_I2C +#define H_LCD_I2C + +#define BIT0 1 +#define BIT1 2 +#define BIT2 4 +#define BIT3 8 +#define BIT4 0x10 +#define BIT5 0x20 +#define BIT6 0x40 +#define BIT7 0x80 + +#define DISPLAY_WIDTH 20 +#define DISPLAY_NUMROWS 2 +#define NUPDATE (DISPLAY_WIDTH*6) + +extern int initLcd(int i2cAddress, int frequency); +extern int lcdWriteMsg(char *msg); +extern int lcdClearDisplay(void); +extern int lcdPositionCursor(char row, char col); + +#endif