sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lcd.h
Go to the documentation of this file.
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
void lcdPrintf(const int fd, const char *message,...)
Definition: lcd.c:347
void lcdPosition(const int fd, int x, int y)
Definition: lcd.c:268
uint8_t state
Definition: Sensors.cpp:526
void lcdCharDef(const int fd, int index, unsigned char data[8])
Definition: lcd.c:290
void lcdCursorBlink(const int fd, int state)
Definition: lcd.c:235
void lcdClear(const int fd)
Definition: lcd.c:194
void lcdHome(const int fd)
Definition: lcd.c:185
void lcdPuts(const int fd, const char *string)
Definition: lcd.c:334
void lcdCursor(const int fd, int state)
Definition: lcd.c:223
tuple data
Definition: ser-mon-AS7265X.py:40
void lcdDisplay(const int fd, int state)
Definition: lcd.c:211
void lcdSendCommand(const int fd, unsigned char command)
Definition: lcd.c:254
static __inline__ uint32_t uint32_t y
Definition: arm_acle.h:113
void lcdPutchar(const int fd, unsigned char data)
Definition: lcd.c:310
int lcdInit(const int rows, const int cols, const int bits, const int rs, const int strb, const int d0, const int d1, const int d2, const int d3, const int d4, const int d5, const int d6, const int d7)
Definition: lcd.c:367