movement: add tick animation in sleep mode

This commit is contained in:
Joey Castillo
2021-10-19 15:37:08 -04:00
parent 75be621914
commit 148a47f76a
3 changed files with 14 additions and 3 deletions

View File

@@ -277,6 +277,10 @@ void watch_start_tick_animation(uint32_t duration) {
slcd_sync_start_animation(&SEGMENT_LCD_0, segs, 1, duration);
}
bool watch_tick_animation_is_running() {
return hri_slcd_get_CTRLD_CSREN_bit(SLCD);
}
void watch_stop_tick_animation() {
const uint32_t segs[] = { SLCD_SEGID(0, 2)};
slcd_sync_stop_animation(&SEGMENT_LCD_0, segs, 1);