mash/lcd-pcf8574.h

changeset 538
6d139c21e22c
parent 537
4eebab50993e
child 539
300b5c4cd977
equal deleted inserted replaced
537:4eebab50993e 538:6d139c21e22c
1 #ifndef _LCD_PCF8574_H
2 #define _LCD_PCF8574_H
3
4
5 #ifdef HAVE_WIRINGPI_H
6 /* wiringPi */
7 #include <wiringPi.h>
8 #include <pcf8574.h>
9 #include <lcd.h>
10
11
12 // Defines for the pcf8574 Pi LCD interface board
13 #define AF_BASE 100
14
15 #define AF_RS (AF_BASE + 0)
16 #define AF_RW (AF_BASE + 1)
17 #define AF_E (AF_BASE + 2)
18 #define AF_BACKLIGHT (AF_BASE + 3)
19 #define AF_DB4 (AF_BASE + 4)
20 #define AF_DB5 (AF_BASE + 5)
21 #define AF_DB6 (AF_BASE + 6)
22 #define AF_DB7 (AF_BASE + 7)
23
24
25 void setBacklight (int);
26 int initLCD (int, int);
27 void mb_lcdPutchar(const int, unsigned char);
28 void mb_lcdPuts(const int, const char *);
29 void mb_lcdClear(const int);
30
31 #endif
32
33 #endif

mercurial