blob: 0a0e5988c32fa078453c5eb2cbbe934135e2ac63 [file] [log] [blame]
Deokgyu Yang3f787a12020-03-30 15:25:23 +09001/*
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
30extern "C" {
31#endif
32
33extern void lcdHome (const int fd) ;
34extern void lcdClear (const int fd) ;
35extern void lcdDisplay (const int fd, int state) ;
36extern void lcdCursor (const int fd, int state) ;
37extern void lcdCursorBlink (const int fd, int state) ;
38extern void lcdSendCommand (const int fd, unsigned char command) ;
39extern void lcdPosition (const int fd, int x, int y) ;
40extern void lcdCharDef (const int fd, int index, unsigned char data [8]) ;
41extern void lcdPutchar (const int fd, unsigned char data) ;
42extern void lcdPuts (const int fd, const char *string) ;
43extern void lcdPrintf (const int fd, const char *message, ...) ;
44
45extern int lcdInit (const int rows, const int cols, const int bits,
46 const int rs, const int strb,
47 const int d0, const int d1, const int d2, const int d3, const int d4,
48 const int d5, const int d6, const int d7) ;
49
50#ifdef __cplusplus
51}
52#endif