summaryrefslogtreecommitdiffstats
path: root/movement
diff options
context:
space:
mode:
authorjoeycastillo <joeycastillo@utexas.edu>2023-08-25 14:20:00 -0400
committerjoeycastillo <joeycastillo@utexas.edu>2023-08-25 15:44:33 -0400
commite38f3bbec9fb2918714713d1a6da77421156aa1f (patch)
tree8d6ddaf9997092e8f7db33b81139ecb52d06f012 /movement
parent413e4602a7b573d6643522fa31a82d2655a0404e (diff)
downloadSensor-Watch-e38f3bbec9fb2918714713d1a6da77421156aa1f.tar.gz
Sensor-Watch-e38f3bbec9fb2918714713d1a6da77421156aa1f.tar.bz2
Sensor-Watch-e38f3bbec9fb2918714713d1a6da77421156aa1f.zip
show temperature and battery voltage in low energy mode
Diffstat (limited to 'movement')
-rw-r--r--movement/watch_faces/demo/voltage_face.c13
-rw-r--r--movement/watch_faces/sensor/thermistor_readout_face.c12
2 files changed, 22 insertions, 3 deletions
diff --git a/movement/watch_faces/demo/voltage_face.c b/movement/watch_faces/demo/voltage_face.c
index 51ed9ccb..d224851b 100644
--- a/movement/watch_faces/demo/voltage_face.c
+++ b/movement/watch_faces/demo/voltage_face.c
@@ -68,8 +68,17 @@ bool voltage_face_loop(movement_event_t event, movement_settings_t *settings, vo
}
break;
case EVENT_LOW_ENERGY_UPDATE:
- watch_clear_indicator(WATCH_INDICATOR_SIGNAL);
- watch_display_string("BA SLEEP ", 0);
+ // clear seconds area and start tick animation if necessary
+ if (!watch_tick_animation_is_running()) {
+ watch_display_string(" ", 8);
+ watch_start_tick_animation(1000);
+ }
+ // update once an hour
+ if (date_time.unit.minute == 0) {
+ watch_clear_indicator(WATCH_INDICATOR_SIGNAL);
+ _voltage_face_update_display();
+ watch_display_string(" ", 8);
+ }
break;
default:
movement_default_loop_handler(event, settings);
diff --git a/movement/watch_faces/sensor/thermistor_readout_face.c b/movement/watch_faces/sensor/thermistor_readout_face.c
index 8a78f73a..2b8ea18d 100644
--- a/movement/watch_faces/sensor/thermistor_readout_face.c
+++ b/movement/watch_faces/sensor/thermistor_readout_face.c
@@ -77,7 +77,17 @@ bool thermistor_readout_face_loop(movement_event_t event, movement_settings_t *s
}
break;
case EVENT_LOW_ENERGY_UPDATE:
- watch_display_string("TE SLEEP ", 0);
+ // clear seconds area and start tick animation if necessary
+ if (!watch_tick_animation_is_running()) {
+ watch_display_string(" ", 8);
+ watch_start_tick_animation(1000);
+ }
+ // update every 5 minutes
+ if (date_time.unit.minute % 5 == 0) {
+ watch_clear_indicator(WATCH_INDICATOR_SIGNAL);
+ _thermistor_readout_face_update_display(settings->bit.use_imperial_units);
+ watch_display_string(" ", 8);
+ }
break;
default:
movement_default_loop_handler(event, settings);