... | ... |
@@ -25,7 +25,7 @@ void mw_lcd_update_screen(void); |
25 | 25 |
#define LCD_WHITE 0 |
26 | 26 |
#endif |
27 | 27 |
#define LCD_XOR 2 |
28 |
-void mw_lcd_draw_pixel(unsigned char x, unsigned char y, unsigned char color); |
|
28 |
+void mw_lcd_draw_pixel(const uint8_t x, const uint8_t y, const uint8_t color); |
|
29 | 29 |
|
30 | 30 |
#endif |
31 | 31 |
|
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,31 @@ |
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 |
+ |