summaryrefslogtreecommitdiffstats
path: root/movement/watch_faces/clock/simple_clock_face.h
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2021-12-21 10:05:06 -0600
committerJoey Castillo <joeycastillo@utexas.edu>2021-12-21 10:05:06 -0600
commit6256e709bf0e29444f6d5383897bc77acd242529 (patch)
treeec3f86334d7074e407d8950284540ef183ab62d4 /movement/watch_faces/clock/simple_clock_face.h
parentb3412277972ef520199e61f42157202114a63438 (diff)
downloadSensor-Watch-6256e709bf0e29444f6d5383897bc77acd242529.tar.gz
Sensor-Watch-6256e709bf0e29444f6d5383897bc77acd242529.tar.bz2
Sensor-Watch-6256e709bf0e29444f6d5383897bc77acd242529.zip
movement: add hourly signal to simple clock face
Diffstat (limited to 'movement/watch_faces/clock/simple_clock_face.h')
-rw-r--r--movement/watch_faces/clock/simple_clock_face.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/movement/watch_faces/clock/simple_clock_face.h b/movement/watch_faces/clock/simple_clock_face.h
index a6cb6ac2..e2ad0ee8 100644
--- a/movement/watch_faces/clock/simple_clock_face.h
+++ b/movement/watch_faces/clock/simple_clock_face.h
@@ -3,19 +3,24 @@
#include "movement.h"
+typedef struct {
+ uint32_t previous_date_time;
+ uint8_t watch_face_index;
+ bool signal_enabled;
+} simple_clock_state_t;
+
void simple_clock_face_setup(movement_settings_t *settings, uint8_t watch_face_index, 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);
+bool simple_clock_face_wants_background_task(movement_settings_t *settings, void *context);
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
+ simple_clock_face_wants_background_task
};
-#endif // SIMPLE_CLOCK_FACE_H_ \ No newline at end of file
+#endif // SIMPLE_CLOCK_FACE_H_