Gary Richardson
/
testLCD
Test of LCD code
lcd_i2c.h@0:a4d44dfd2f03, 2014-05-30 (annotated)
- Committer:
- garyr
- Date:
- Fri May 30 12:24:56 2014 +0000
- Revision:
- 0:a4d44dfd2f03
LCD test code
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
garyr | 0:a4d44dfd2f03 | 1 | #ifndef H_LCD_I2C |
garyr | 0:a4d44dfd2f03 | 2 | #define H_LCD_I2C |
garyr | 0:a4d44dfd2f03 | 3 | |
garyr | 0:a4d44dfd2f03 | 4 | #define BIT0 1 |
garyr | 0:a4d44dfd2f03 | 5 | #define BIT1 2 |
garyr | 0:a4d44dfd2f03 | 6 | #define BIT2 4 |
garyr | 0:a4d44dfd2f03 | 7 | #define BIT3 8 |
garyr | 0:a4d44dfd2f03 | 8 | #define BIT4 0x10 |
garyr | 0:a4d44dfd2f03 | 9 | #define BIT5 0x20 |
garyr | 0:a4d44dfd2f03 | 10 | #define BIT6 0x40 |
garyr | 0:a4d44dfd2f03 | 11 | #define BIT7 0x80 |
garyr | 0:a4d44dfd2f03 | 12 | |
garyr | 0:a4d44dfd2f03 | 13 | #define DISPLAY_WIDTH 20 |
garyr | 0:a4d44dfd2f03 | 14 | #define DISPLAY_NUMROWS 2 |
garyr | 0:a4d44dfd2f03 | 15 | #define NUPDATE (DISPLAY_WIDTH*6) |
garyr | 0:a4d44dfd2f03 | 16 | |
garyr | 0:a4d44dfd2f03 | 17 | extern int initLcd(int i2cAddress, int frequency); |
garyr | 0:a4d44dfd2f03 | 18 | extern int lcdWriteMsg(char *msg); |
garyr | 0:a4d44dfd2f03 | 19 | extern int lcdClearDisplay(void); |
garyr | 0:a4d44dfd2f03 | 20 | extern int lcdPositionCursor(char row, char col); |
garyr | 0:a4d44dfd2f03 | 21 | |
garyr | 0:a4d44dfd2f03 | 22 | #endif |