aboutsummaryrefslogtreecommitdiffstats
path: root/display.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--display.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/display.h b/display.h
new file mode 100644
index 0000000..0be2d50
--- /dev/null
+++ b/display.h
@@ -0,0 +1,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);