summaryrefslogtreecommitdiffstats
path: root/movement/watch_faces/complications/pulseometer_face.h
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-10-16 13:14:52 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-10-16 13:14:52 -0400
commitd5ac4cb71b4e328a27e26843cfdc6719b152ac7d (patch)
tree5e6d916c6848c912ae8cbc4d2ff799728103d6a7 /movement/watch_faces/complications/pulseometer_face.h
parente8461984d60a80841a5f4b219358cc20567114f8 (diff)
downloadSensor-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.h24
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