2011-04-17 16:59:51 +02:00
|
|
|
#ifndef _LCD_H_
|
|
|
|
#define _LCD_H_
|
|
|
|
|
|
|
|
#define LCD_BUTTON0 0x00
|
|
|
|
#define LCD_BUTTON1 0x01
|
|
|
|
#define LCD_BUTTON2 0x02
|
|
|
|
|
|
|
|
struct lcddev; /* private data */
|
|
|
|
|
2011-04-17 17:37:38 +02:00
|
|
|
struct lcddev * lcd_init(const char *device,
|
|
|
|
int backlight_timeout,
|
|
|
|
int (*button_callback)(struct lcddev *dev, int button, void *privdata),
|
|
|
|
void *privdata);
|
|
|
|
|
|
|
|
void lcd_close(struct lcddev *dev);
|
2011-04-18 21:59:49 +02:00
|
|
|
void lcd_reset(struct lcddev *dev);
|
|
|
|
|
|
|
|
int lcd_trigger_backlight(struct lcddev *dev, int timeout);
|
|
|
|
int lcd_setlines(struct lcddev *dev, int scrollspeed, const char *line1, const char *line2);
|
2011-04-17 16:59:51 +02:00
|
|
|
|
|
|
|
#endif /* _LCD_H_ */
|