chiark / gitweb /
d4c724c0a757db0a2db881fb278fffbb10b81dc8
[wiringPi.git] / wiringPi / lcd.h
1 /*
2  * lcd.h:
3  *      Text-based LCD driver.
4  *      This is designed to drive the parallel interface LCD drivers
5  *      based in the Hitachi HD44780U controller and compatables.
6  *
7  * Copyright (c) 2012 Gordon Henderson.
8  ***********************************************************************
9  * This file is part of wiringPi:
10  *      https://projects.drogon.net/raspberry-pi/wiringpi/
11  *
12  *    wiringPi is free software: you can redistribute it and/or modify
13  *    it under the terms of the GNU Lesser General Public License as published by
14  *    the Free Software Foundation, either version 3 of the License, or
15  *    (at your option) any later version.
16  *
17  *    wiringPi is distributed in the hope that it will be useful,
18  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
19  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  *    GNU Lesser General Public License for more details.
21  *
22  *    You should have received a copy of the GNU Lesser General Public License
23  *    along with wiringPi.  If not, see <http://www.gnu.org/licenses/>.
24  ***********************************************************************
25  */
26
27 #define MAX_LCDS        8
28
29 extern void lcdHome     (int fd) ;
30 extern void lcdClear    (int fd) ;
31 extern void lcdPosition (int fd, int x, int y) ;
32 extern void lcdPutchar  (int fd, uint8_t data) ;
33 extern void lcdPuts     (int fd, char *string) ;
34 extern void lcdPrintf   (int fd, char *message, ...) ;
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 extern int  lcdInit (int rows, int cols, int bits, int rs, int strb,
41         int d0, int d1, int d2, int d3, int d4, int d5, int d6, int d7) ;
42
43 #ifdef __cplusplus
44 }
45 #endif