lib/lcd-pcf8574.c

changeset 18
3f4823083b9d
parent 16
f4cbe008da72
child 28
32ed1ea4d0b6
equal deleted inserted replaced
17:b802305046dc 18:3f4823083b9d
24 */ 24 */
25 25
26 #include "../config.h" 26 #include "../config.h"
27 #include "mbselib.h" 27 #include "mbselib.h"
28 28
29 //#include <stdio.h> 29 #ifdef HAVE_WIRINGPI_H
30 //#include <stdlib.h>
31 //#include <unistd.h>
32 //#include <stdint.h>
33
34 //#include <string.h>
35 //#include <time.h>
36
37 //#include <wiringPi.h>
38 //#include <pcf8574.h>
39 //#include <lcd.h>
40
41 //#ifndef TRUE
42 //# define TRUE (1==1)
43 //# define FALSE (1==2)
44 //#endif
45
46
47 // Defines for the pcf8574 Pi LCD interface board
48
49 //#define AF_BASE 100
50
51 //#define AF_RS (AF_BASE + 0)
52 //#define AF_RW (AF_BASE + 1)
53 //#define AF_E (AF_BASE + 2)
54 //#define AF_BACKLIGHT (AF_BASE + 3)
55
56 //#define AF_DB4 (AF_BASE + 4)
57 //#define AF_DB5 (AF_BASE + 5)
58 //#define AF_DB6 (AF_BASE + 6)
59 //#define AF_DB7 (AF_BASE + 7)
60
61
62 // User-Defined character test
63
64 // Global lcd handle:
65 30
66 int lcdHandle; 31 int lcdHandle;
67 32
68 33
69 /* 34 /*
117 } 82 }
118 83
119 lcdClear (lcdHandle) ; 84 lcdClear (lcdHandle) ;
120 return 0 ; 85 return 0 ;
121 } 86 }
87
88 #endif
89

mercurial