diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-10-16 13:14:52 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-10-16 13:14:52 -0400 |
commit | d5ac4cb71b4e328a27e26843cfdc6719b152ac7d (patch) | |
tree | 5e6d916c6848c912ae8cbc4d2ff799728103d6a7 /movement/watch_faces/complications/pulseometer_face.h | |
parent | e8461984d60a80841a5f4b219358cc20567114f8 (diff) | |
download | Sensor-Watch-d5ac4cb71b4e328a27e26843cfdc6719b152ac7d.tar.gz Sensor-Watch-d5ac4cb71b4e328a27e26843cfdc6719b152ac7d.tar.bz2 Sensor-Watch-d5ac4cb71b4e328a27e26843cfdc6719b152ac7d.zip |
widgets are now watch faces
Diffstat (limited to 'movement/watch_faces/complications/pulseometer_face.h')
-rw-r--r-- | movement/watch_faces/complications/pulseometer_face.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/movement/watch_faces/complications/pulseometer_face.h b/movement/watch_faces/complications/pulseometer_face.h new file mode 100644 index 00000000..7b96259c --- /dev/null +++ b/movement/watch_faces/complications/pulseometer_face.h @@ -0,0 +1,24 @@ +#ifndef PULSEOMETER_FACE_H_ +#define PULSEOMETER_FACE_H_ + +#include "movement.h" + +typedef struct { + bool measuring; + int16_t pulse; + int16_t ticks; +} PulsometerState; + +void pulseometer_face_setup(LauncherSettings *settings, void ** context_ptr); +void pulseometer_face_activate(LauncherSettings *settings, void *context); +bool pulseometer_face_loop(LauncherEvent event, LauncherSettings *settings, void *context); +void pulseometer_face_resign(LauncherSettings *settings, void *context); + +#define pulseometer_face { \ + pulseometer_face_setup, \ + pulseometer_face_activate, \ + pulseometer_face_loop, \ + pulseometer_face_resign, \ +} + +#endif // PULSEOMETER_FACE_H_
\ No newline at end of file |