25 lines
691 B
C
25 lines
691 B
C
#ifndef _LCD_H_
|
|
#define _LCD_H_
|
|
|
|
#define LCD_EVENT_INIT 0x00
|
|
#define LCD_EVENT_BUTTON1 0x01
|
|
#define LCD_EVENT_BUTTON2 0x02
|
|
#define LCD_EVENT_BACKLIGHT 0x04
|
|
|
|
struct lcddev; /* private data */
|
|
|
|
struct lcddev * lcd_init(const char *device,
|
|
int (*event_callback)(struct lcddev *dev, int event, void *privdata),
|
|
void *event_privdata);
|
|
|
|
void lcd_close(struct lcddev *dev);
|
|
void lcd_reset(struct lcddev *dev);
|
|
|
|
#define LCD_BACKLIGHT_OFF (0)
|
|
#define LCD_BACKLIGHT_ON (-1)
|
|
|
|
int lcd_trigger_backlight(struct lcddev *dev, int timeout);
|
|
int lcd_setlines(struct lcddev *dev, int scrollspeed, const char *line1, const char *line2);
|
|
|
|
#endif /* _LCD_H_ */
|