typedef signed char s8t;
typedef unsigned char u8t;
+typedef signed short s16t;
+typedef unsigned short u16t;
typedef u8t boolean;
#ifdef TRUE
#undef TRUE
typedef enum {
IDLE_SCREEN = 0,
- APPLICATION_SCREEN,
+ SETTING_DATETIME_SCREEN,
+// SCREEN2_SCREEN,
+// SCREEN3_SCREEN,
+// APPLICATION_SCREEN,
+ LAST_SCREEN, // a marker for the last (not valid) screen)
} screen_number;
typedef enum {
BUTTON_F,
} watch_button;
+typedef struct {
+ void (*button_func)(watch_button button);
+} watch_screen;
+
typedef struct {
screen_number screen;
- void (*idle_draw_func)(boolean show_seconds);
+ // void (*draw_watchface_func)(boolean show_seconds);
boolean idle_show_seconds;
+ void (*user_button_func)(watch_button button);
+ void (*user_screendraw_func)(void);
} watch_state;
-
#endif