Test of LCD code
lcd_i2c.h
- Committer:
- garyr
- Date:
- 2014-05-30
- Revision:
- 0:a4d44dfd2f03
File content as of revision 0:a4d44dfd2f03:
#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