Browse code

Make accelerometer work, interrup driven tilt change mode

Nils Faerber authored on 05/05/2013 21:22:33
Showing 1 changed files
... ...
@@ -9,6 +9,9 @@ typedef struct {
9 9
 	GtkWidget *mainwin;
10 10
 	GtkWidget *darea;
11 11
 	GdkPixmap *pixmap;
12
+	GtkWidget *x_sc;
13
+	GtkWidget *y_sc;
14
+	GtkWidget *z_sc;
12 15
 	uint8_t accel_x;
13 16
 	uint8_t accel_y;
14 17
 	uint8_t accel_z;
Browse code

Rework font code, add new fonts, also proportional, rework watch usage - "SET" button now enters settings mode

Nils Faerber authored on 04/05/2013 19:23:25
Showing 1 changed files
... ...
@@ -9,9 +9,9 @@ typedef struct {
9 9
 	GtkWidget *mainwin;
10 10
 	GtkWidget *darea;
11 11
 	GdkPixmap *pixmap;
12
-	u8t accel_x;
13
-	u8t accel_y;
14
-	u8t accel_z;
12
+	uint8_t accel_x;
13
+	uint8_t accel_y;
14
+	uint8_t accel_z;
15 15
 	gboolean halfsecond_active;
16 16
 	gboolean centisecond_active;
17 17
 } oswald_ui;
Browse code

Add fixes for it to work properly on microcontroller

Nils Faerber authored on 19/03/2013 19:22:58
Showing 1 changed files
... ...
@@ -18,6 +18,7 @@ typedef struct {
18 18
 
19 19
 void lcd_set_pixel(gint x, gint y, gboolean state);
20 20
 void lcd_clear_display(void);
21
+void lcd_update_display(void);
21 22
 
22 23
 void enable_centisecond_timer(void);
23 24
 void disable_centisecond_timer(void);
Browse code

Countless fixes and enhancements

Nils Faerber authored on 12/08/2012 21:14:19
Showing 1 changed files
... ...
@@ -9,10 +9,21 @@ typedef struct {
9 9
 	GtkWidget *mainwin;
10 10
 	GtkWidget *darea;
11 11
 	GdkPixmap *pixmap;
12
+	u8t accel_x;
13
+	u8t accel_y;
14
+	u8t accel_z;
15
+	gboolean halfsecond_active;
16
+	gboolean centisecond_active;
12 17
 } oswald_ui;
13 18
 
14 19
 void lcd_set_pixel(gint x, gint y, gboolean state);
15 20
 void lcd_clear_display(void);
16 21
 
22
+void enable_centisecond_timer(void);
23
+void disable_centisecond_timer(void);
24
+
25
+void enable_halfsecond_timer(void);
26
+void disable_halfsecond_timer(void);
27
+
17 28
 #endif
18 29
 
Browse code

Too much to note...

Nils Faerber authored on 05/08/2012 17:07:17
Showing 1 changed files
... ...
@@ -3,14 +3,16 @@
3 3
 
4 4
 #include <gtk/gtk.h>
5 5
 
6
+#include "oswald.h"
7
+
6 8
 typedef struct {
7 9
 	GtkWidget *mainwin;
8 10
 	GtkWidget *darea;
9 11
 	GdkPixmap *pixmap;
10
-	gboolean OnIdleScreen;
11 12
 } oswald_ui;
12 13
 
13
-void set_pixel(oswald_ui *ui, gint x, gint y, gboolean state);
14
+void lcd_set_pixel(gint x, gint y, gboolean state);
15
+void lcd_clear_display(void);
14 16
 
15 17
 #endif
16 18
 
Browse code

Add missing header

Nils Faerber authored on 02/08/2012 16:58:07
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,16 @@
1
+#ifndef _oswald_ui_h
2
+#define _oswald_ui_h
3
+
4
+#include <gtk/gtk.h>
5
+
6
+typedef struct {
7
+	GtkWidget *mainwin;
8
+	GtkWidget *darea;
9
+	GdkPixmap *pixmap;
10
+	gboolean OnIdleScreen;
11
+} oswald_ui;
12
+
13
+void set_pixel(oswald_ui *ui, gint x, gint y, gboolean state);
14
+
15
+#endif
16
+