summaryrefslogtreecommitdiffstats
path: root/movement/watch_faces/demos/voltage_face.h
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-11-06 23:52:00 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-11-06 23:52:00 -0400
commit0f03257ee9ef46ac61e20f7201e2c50dedff01b2 (patch)
treeefb1d09dc3abaaa8211d130c3c068e14cb8ca4c2 /movement/watch_faces/demos/voltage_face.h
parent88f41b12fc99542e2ace7b63651971e5907cfd1d (diff)
downloadSensor-Watch-0f03257ee9ef46ac61e20f7201e2c50dedff01b2.tar.gz
Sensor-Watch-0f03257ee9ef46ac61e20f7201e2c50dedff01b2.tar.bz2
Sensor-Watch-0f03257ee9ef46ac61e20f7201e2c50dedff01b2.zip
movement: add voltage monitor watch face
Diffstat (limited to 'movement/watch_faces/demos/voltage_face.h')
-rw-r--r--movement/watch_faces/demos/voltage_face.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/movement/watch_faces/demos/voltage_face.h b/movement/watch_faces/demos/voltage_face.h
new file mode 100644
index 00000000..da580da5
--- /dev/null
+++ b/movement/watch_faces/demos/voltage_face.h
@@ -0,0 +1,19 @@
+#ifndef VOLTAGE_FACE_H_
+#define VOLTAGE_FACE_H_
+
+#include "movement.h"
+
+void voltage_face_setup(movement_settings_t *settings, void ** context_ptr);
+void voltage_face_activate(movement_settings_t *settings, void *context);
+bool voltage_face_loop(movement_event_t event, movement_settings_t *settings, void *context);
+void voltage_face_resign(movement_settings_t *settings, void *context);
+
+static const watch_face_t voltage_face = {
+ voltage_face_setup,
+ voltage_face_activate,
+ voltage_face_loop,
+ voltage_face_resign,
+ NULL
+};
+
+#endif // VOLTAGE_FACE_H_ \ No newline at end of file