summaryrefslogtreecommitdiffstats
path: root/movement/watch_faces/clock/simple_clock_face.h
diff options
context:
space:
mode:
Diffstat (limited to 'movement/watch_faces/clock/simple_clock_face.h')
-rw-r--r--movement/watch_faces/clock/simple_clock_face.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/movement/watch_faces/clock/simple_clock_face.h b/movement/watch_faces/clock/simple_clock_face.h
new file mode 100644
index 00000000..3db894d2
--- /dev/null
+++ b/movement/watch_faces/clock/simple_clock_face.h
@@ -0,0 +1,21 @@
+#ifndef SIMPLE_CLOCK_FACE_H_
+#define SIMPLE_CLOCK_FACE_H_
+
+#include "movement.h"
+
+void simple_clock_face_setup(movement_settings_t *settings, void ** context_ptr);
+void simple_clock_face_activate(movement_settings_t *settings, void *context);
+bool simple_clock_face_loop(movement_event_t event, movement_settings_t *settings, void *context);
+void simple_clock_face_resign(movement_settings_t *settings, void *context);
+
+uint8_t simple_clock_face_get_weekday(uint16_t day, uint16_t month, uint16_t year);
+
+static const watch_face_t simple_clock_face = {
+ simple_clock_face_setup,
+ simple_clock_face_activate,
+ simple_clock_face_loop,
+ simple_clock_face_resign,
+ NULL
+};
+
+#endif // SIMPLE_CLOCK_FACE_H_ \ No newline at end of file