brewco/lcd-pcf8574.h

changeset 487
d5bc44183aa4
parent 486
5a237a99a793
child 488
bee1f70fb42b
equal deleted inserted replaced
486:5a237a99a793 487:d5bc44183aa4
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 #endif
20
21 void setBacklight (int);
22 int initLCD (int, int);
23
24
25 #endif

mercurial