thermferm/lcd-pcf8574.h

changeset 106
1bd9a16f5061
child 223
14700edd2a67
equal deleted inserted replaced
105:a5a964148e34 106:1bd9a16f5061
1 #ifndef LCD_PCF8574_H
2 #define LCD_PCF8574_H
3
4
5 #ifdef HAVE_WIRINGPI_H
6
7 // Defines for the pcf8574 Pi LCD interface board
8 #define AF_BASE 100
9
10 #define AF_RS (AF_BASE + 0)
11 #define AF_RW (AF_BASE + 1)
12 #define AF_E (AF_BASE + 2)
13 #define AF_BACKLIGHT (AF_BASE + 3)
14 #define AF_DB4 (AF_BASE + 4)
15 #define AF_DB5 (AF_BASE + 5)
16 #define AF_DB6 (AF_BASE + 6)
17 #define AF_DB7 (AF_BASE + 7)
18
19 void setBacklight (int);
20 int initLCD (int, int);
21 void mb_lcdPutchar(const int, unsigned char);
22 void mb_lcdPuts(const int, const char *);
23 void mb_lcdClear(const int);
24
25 #endif
26
27 #endif

mercurial