Deokgyu Yang | 3f787a1 | 2020-03-30 15:25:23 +0900 | [diff] [blame] | 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 (const int fd) ; |
| 34 | extern void lcdClear (const int fd) ; |
| 35 | extern void lcdDisplay (const int fd, int state) ; |
| 36 | extern void lcdCursor (const int fd, int state) ; |
| 37 | extern void lcdCursorBlink (const int fd, int state) ; |
| 38 | extern void lcdSendCommand (const int fd, unsigned char command) ; |
| 39 | extern void lcdPosition (const int fd, int x, int y) ; |
| 40 | extern void lcdCharDef (const int fd, int index, unsigned char data [8]) ; |
| 41 | extern void lcdPutchar (const int fd, unsigned char data) ; |
| 42 | extern void lcdPuts (const int fd, const char *string) ; |
| 43 | extern void lcdPrintf (const int fd, const char *message, ...) ; |
| 44 | |
| 45 | extern 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 |