show temperature and battery voltage in low energy mode

This commit is contained in:
joeycastillo 2023-08-25 14:20:00 -04:00
parent 413e4602a7
commit e38f3bbec9
2 changed files with 22 additions and 3 deletions

View File

@ -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);

View File

@ -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);