aboutsummaryrefslogtreecommitdiffstats
path: root/display.h
blob: 0be2d5046b5c3b09b37032faea73b9eb14c96b58 (plain)
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
#define BAR_L 1
#define BAR_R 2
#define BAR_U 4
#define BAR_D 8
#define BAR_S 256

typedef struct {
  char name[16];
  int rows;
  int cols;
  int xres;
  int yres;
  int bars;
  int (*init) (void);
  int (*clear) (void);
  int (*put) (int x, int y, char *text);
  int (*bar) (int type, int x, int y, int max, int len1, int len2);
  int (*flush) (void);
} DISPLAY;

typedef struct {
  char name[16];
  DISPLAY *Display;
} FAMILY;

int lcd_init (char *display);
int lcd_clear (void);
int lcd_put (int x, int y, char *text);
int lcd_bar (int type, int x, int y, int max, int len1, int len2);
int lcd_flush (void);