lib/mbselib.h

changeset 16
f4cbe008da72
parent 12
102c44bb8c9d
child 17
b802305046dc
equal deleted inserted replaced
15:01fec4ddad17 16:f4cbe008da72
14 #include <unistd.h> 14 #include <unistd.h>
15 #include <errno.h> 15 #include <errno.h>
16 #include <signal.h> 16 #include <signal.h>
17 #include <getopt.h> 17 #include <getopt.h>
18 18
19 /* mosquitto */
19 #include <mosquitto.h> 20 #include <mosquitto.h>
20 21
22 /* wiringPi */
23 #include <wiringPi.h>
24 #include <pcf8574.h>
25 #include <lcd.h>
21 26
22 #define TRUE 1 27 #define TRUE 1
23 #define FALSE 0 28 #define FALSE 0
24 29
25 #define MBSE_SS(x) (x)?(x):"(null)" 30 #define MBSE_SS(x) (x)?(x):"(null)"
57 /* xutil.c */ 62 /* xutil.c */
58 char *xmalloc(size_t); 63 char *xmalloc(size_t);
59 char *xstrcpy(char *); 64 char *xstrcpy(char *);
60 char *xstrcat(char *, char *); 65 char *xstrcat(char *, char *);
61 66
67
68 /* lcd-pcf8574.c */
69 // Defines for the pcf8574 Pi LCD interface board
70
71 #define AF_BASE 100
72
73 #define AF_RS (AF_BASE + 0)
74 #define AF_RW (AF_BASE + 1)
75 #define AF_E (AF_BASE + 2)
76 #define AF_BACKLIGHT (AF_BASE + 3)
77 #define AF_DB4 (AF_BASE + 4)
78 #define AF_DB5 (AF_BASE + 5)
79 #define AF_DB6 (AF_BASE + 6)
80 #define AF_DB7 (AF_BASE + 7)
81
82 void setBacklight (int);
83 int initLCD (int, int);
84
62 #endif 85 #endif
63 86

mercurial