tick_animation is now sleep_animation (which just displays an indicator on new LCD)

This commit is contained in:
joeycastillo
2024-09-29 15:24:11 -04:00
parent 3795b8494a
commit 4b8b092594
36 changed files with 65 additions and 65 deletions

View File

@@ -72,7 +72,7 @@ bool beats_face_loop(movement_event_t event, void *context) {
watch_display_text(WATCH_POSITION_BOTTOM, buf);
break;
case EVENT_LOW_ENERGY_UPDATE:
if (!watch_tick_animation_is_running()) watch_start_tick_animation(432);
if (!watch_sleep_animation_is_running()) watch_start_sleep_animation(432);
date_time = watch_rtc_get_date_time();
centibeats = clock2beats(date_time.unit.hour, date_time.unit.minute, date_time.unit.second, event.subsecond, movement_get_current_timezone_offset());
sprintf(buf, "%4lu ", centibeats / 100);

View File

@@ -199,14 +199,14 @@ static void clock_display_low_energy(watch_date_time date_time) {
}
static void clock_start_tick_tock_animation(void) {
if (!watch_tick_animation_is_running()) {
watch_start_tick_animation(500);
if (!watch_sleep_animation_is_running()) {
watch_start_sleep_animation(500);
}
}
static void clock_stop_tick_tock_animation(void) {
if (watch_tick_animation_is_running()) {
watch_stop_tick_animation();
if (watch_sleep_animation_is_running()) {
watch_stop_sleep_animation();
}
}

View File

@@ -48,7 +48,7 @@ void simple_clock_face_setup(uint8_t watch_face_index, void ** context_ptr) {
void simple_clock_face_activate(void *context) {
simple_clock_state_t *state = (simple_clock_state_t *)context;
if (watch_tick_animation_is_running()) watch_stop_tick_animation();
if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
if (movement_clock_mode_24h()) watch_set_indicator(WATCH_INDICATOR_24H);
@@ -122,7 +122,7 @@ bool simple_clock_face_loop(movement_event_t event, void *context) {
watch_display_text(WATCH_POSITION_MINUTES, buf + 4);
if (event.event_type == EVENT_LOW_ENERGY_UPDATE) {
watch_display_character(' ', 9);
if (!watch_tick_animation_is_running()) watch_start_tick_animation(500);
if (!watch_sleep_animation_is_running()) watch_start_sleep_animation(500);
} else {
watch_display_text(WATCH_POSITION_SECONDS, buf + 6);
}

View File

@@ -56,7 +56,7 @@ void world_clock_face_activate(void *context) {
state->current_screen = 0;
_update_timezone_offset(state);
if (watch_tick_animation_is_running()) watch_stop_tick_animation();
if (watch_sleep_animation_is_running()) watch_stop_sleep_animation();
}
static bool world_clock_face_do_display_mode(movement_event_t event, world_clock_state_t *state) {
@@ -108,7 +108,7 @@ static bool world_clock_face_do_display_mode(movement_event_t event, world_clock
watch_display_text(WATCH_POSITION_HOURS, buf + 2);
watch_display_text(WATCH_POSITION_MINUTES, buf + 4);
if (event.event_type == EVENT_LOW_ENERGY_UPDATE) {
if (!watch_tick_animation_is_running()) watch_start_tick_animation(500);
if (!watch_sleep_animation_is_running()) watch_start_sleep_animation(500);
} else {
watch_display_text(WATCH_POSITION_SECONDS, buf + 6);
}