... | ... |
@@ -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; |
... | ... |
@@ -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 |
|
... | ... |
@@ -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 |
|
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 |
+ |