lib/lcd-pcf8574.c

changeset 28
32ed1ea4d0b6
parent 18
3f4823083b9d
child 40
dafbbd5e9922
equal deleted inserted replaced
27:4703cc10b99a 28:32ed1ea4d0b6
61 { 61 {
62 fprintf (stderr, "cols must be 16 or 20\n") ; 62 fprintf (stderr, "cols must be 16 or 20\n") ;
63 return EXIT_FAILURE ; 63 return EXIT_FAILURE ;
64 } 64 }
65 65
66 wiringPiSetupSys () ;
67 pcf8574Setup (AF_BASE, 0x27) ; 66 pcf8574Setup (AF_BASE, 0x27) ;
68 67
69 setBacklight (1) ; 68 setBacklight (1) ;
70 69
71 pinMode (AF_RW, OUTPUT) ; 70 pinMode (AF_RW, OUTPUT) ;

mercurial