Browse code

Replace font handling, add new watch face, add calendar. More watchfaces, make calendar interactive and start rearranging button functions

Dario Rodriguez authored on 17/12/2013 22:59:59
Showing 1 changed files
... ...
@@ -17,7 +17,7 @@ void mw_lcd_clear(void);
17 17
 void mw_lcd_clear_fb(void);
18 18
 void mw_lcd_update_screen(void);
19 19
 
20
-#if 0
20
+#if 1
21 21
 #define LCD_BLACK	0
22 22
 #define LCD_WHITE	1
23 23
 #else
Browse code

Add invert option

Nils Faerber authored on 06/07/2013 21:17:34
Showing 1 changed files
... ...
@@ -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
 
Browse code

Here we are! MetaWatch support in Oswald!

Nils Faerber authored on 27/04/2013 20:22:32
Showing 1 changed files
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
+