CoffeePi
Coffee machine control for Raspberry Pi
lcd.h
Go to the documentation of this file.
1 /*
2  * lcd.h
3  *
4  * Created on: Aug 3, 2016
5  * Author: sebastian
6  */
7 
8 #ifndef LCD_H_
9 #define LCD_H_
10 
11 #define MAX_LCDS 8
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 extern void lcdHome (const int fd) ;
18 extern void lcdClear (const int fd) ;
19 extern void lcdDisplay (const int fd, int state) ;
20 extern void lcdCursor (const int fd, int state) ;
21 extern void lcdCursorBlink (const int fd, int state) ;
22 extern void lcdSendCommand (const int fd, unsigned char command) ;
23 extern void lcdPosition (const int fd, int x, int y) ;
24 extern void lcdCharDef (const int fd, int index, unsigned char data [8]) ;
25 extern void lcdPutchar (const int fd, unsigned char data) ;
26 extern void lcdPuts (const int fd, const char *string) ;
27 extern void lcdPrintf (const int fd, const char *message, ...) ;
28 
29 extern int lcdInitI (const int rows, const int cols, const int bits,
30  const int rs, const int strb) ;
31 
32 extern int lcdInit (void) ;
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 // Pinbelegung für das LCD, an verwendete Pins anpassen
39 
40 #define LCD_RW 24
41 #define LCD_RS 27
42 #define LCD_EN 23
43 
44 
45 
46 
47 #endif /* LCD_H_ */
void lcdPrintf(const int fd, const char *message,...)
Definition: lcd.cpp:307
void lcdPosition(const int fd, int x, int y)
Definition: lcd.cpp:233
void lcdCharDef(const int fd, int index, unsigned char data[8])
Definition: lcd.cpp:255
void lcdCursorBlink(const int fd, int state)
Definition: lcd.cpp:204
void lcdClear(const int fd)
Definition: lcd.cpp:167
void lcdHome(const int fd)
Definition: lcd.cpp:159
void lcdPuts(const int fd, const char *string)
Definition: lcd.cpp:296
int lcdInit(void)
Definition: lcd.cpp:324
void lcdCursor(const int fd, int state)
Definition: lcd.cpp:193
void lcdDisplay(const int fd, int state)
Definition: lcd.cpp:182
void lcdSendCommand(const int fd, unsigned char command)
Definition: lcd.cpp:221
int lcdInitI(const int rows, const int cols, const int bits, const int rs, const int strb)
Definition: lcd.cpp:339
void lcdPutchar(const int fd, unsigned char data)
Definition: lcd.cpp:273