diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-11-22 17:35:50 -0500 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-11-22 17:35:50 -0500 |
commit | 7817e6696e438c8af74342ef10b576975a0e5448 (patch) | |
tree | 865dd18e9d77e404ed5bd44af87e33a2d7d44ef3 /movement/watch_faces/complications/stopwatch_face.h | |
parent | 0ca729eaba7cdca543bc563912095df98f2b3786 (diff) | |
parent | 25815ed4f649f3b908dbc40c926997eec2b095e8 (diff) | |
download | Sensor-Watch-7817e6696e438c8af74342ef10b576975a0e5448.tar.gz Sensor-Watch-7817e6696e438c8af74342ef10b576975a0e5448.tar.bz2 Sensor-Watch-7817e6696e438c8af74342ef10b576975a0e5448.zip |
Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into main
Diffstat (limited to 'movement/watch_faces/complications/stopwatch_face.h')
-rw-r--r-- | movement/watch_faces/complications/stopwatch_face.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/movement/watch_faces/complications/stopwatch_face.h b/movement/watch_faces/complications/stopwatch_face.h new file mode 100644 index 00000000..537c01ce --- /dev/null +++ b/movement/watch_faces/complications/stopwatch_face.h @@ -0,0 +1,26 @@ +#ifndef STOPWATCH_FACE_H_ +#define STOPWATCH_FACE_H_ + +#include "movement.h" + +typedef struct { + bool running; + uint8_t seconds; + uint8_t minutes; + uint8_t hours; +} stopwatch_state_t; + +void stopwatch_face_setup(movement_settings_t *settings, void ** context_ptr); +void stopwatch_face_activate(movement_settings_t *settings, void *context); +bool stopwatch_face_loop(movement_event_t event, movement_settings_t *settings, void *context); +void stopwatch_face_resign(movement_settings_t *settings, void *context); + +static const watch_face_t stopwatch_face = { + stopwatch_face_setup, + stopwatch_face_activate, + stopwatch_face_loop, + stopwatch_face_resign, + NULL +}; + +#endif // STOPWATCH_FACE_H_
\ No newline at end of file |