]> git.karo-electronics.de Git - oswald.git/blob - metawatch/mw_lcd.h
Here we are! MetaWatch support in Oswald!
[oswald.git] / metawatch / mw_lcd.h
1 #ifndef _MW_LCD_H
2 #define _MW_LCD_H
3
4 typedef struct
5 {
6         unsigned char Row;      /* row number for LCD command */
7         unsigned char Data[12]; /* 12*8 = 96bit */
8         unsigned char Dummy;    /* 0x00 dummy byte to latch data into LCD */
9 } tLcdLine;
10
11 extern tLcdLine lcd_buf[];
12
13 void memfill(void *target, unsigned char val, unsigned int count);
14
15 void mw_lcd_init(void);
16 void mw_lcd_clear(void);
17 void mw_lcd_clear_fb(void);
18 void mw_lcd_update_screen(void);
19
20 #if 0
21 #define LCD_BLACK       0
22 #define LCD_WHITE       1
23 #else
24 #define LCD_BLACK       1
25 #define LCD_WHITE       0
26 #endif
27 #define LCD_XOR         2
28 void mw_lcd_draw_pixel(unsigned char x, unsigned char y, unsigned char color);
29
30 #endif
31