chiark / gitweb /
Updating gpio manual page
[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 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 extern void lcdHome     (int fd) ;
34 extern void lcdClear    (int fd) ;
35 extern void lcdPosition (int fd, int x, int y) ;
36 extern void lcdPutchar  (int fd, uint8_t data) ;
37 extern void lcdPuts     (int fd, char *string) ;
38 extern void lcdPrintf   (int fd, char *message, ...) ;
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