-
Notifications
You must be signed in to change notification settings - Fork 0
/
century.h
executable file
·35 lines (27 loc) · 1.35 KB
/
century.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef CENTURY_H
#define CENTURY_H
#include "lcd.h"
#define DEFAULT_CELL_WIDTH 5
#define DEFAULT_CELL_HEIGHT 7
#define DEFAULT_CONTRAST 560
#define DEFAULT_DEVICE "/dev/lcd"
#define DEFAULT_SPEED B19200
#define DEFAULT_BRIGHTNESS 0
#define DEFAULT_OFFBRIGHTNESS 7
#define DEFAULT_SIZE "20x2"
MODULE_EXPORT int century_init (Driver * drvthis, char *device);
MODULE_EXPORT void century_close (Driver * drvthis);
MODULE_EXPORT int century_width (Driver * drvthis);
MODULE_EXPORT int century_height (Driver * drvthis);
MODULE_EXPORT void century_clear (Driver * drvthis);
MODULE_EXPORT void century_flush (Driver * drvthis);
MODULE_EXPORT void century_string (Driver * drvthis, int x, int y, char string[]);
MODULE_EXPORT void century_chr (Driver * drvthis, int x, int y, char c);
MODULE_EXPORT void century_vbar (Driver * drvthis, int x, int y, int len, int promille, int options);
MODULE_EXPORT void century_hbar (Driver * drvthis, int x, int y, int len, int promille, int options);
MODULE_EXPORT int century_icon(Driver * drvthis, int x, int y, int icon);
MODULE_EXPORT void century_set_char (Driver * drvthis, int n, char *dat);
MODULE_EXPORT int century_get_contrast (Driver * drvthis);
MODULE_EXPORT void century_set_contrast (Driver * drvthis, int contrast);
MODULE_EXPORT void century_backlight (Driver * drvthis, int on);
#endif