RTC->MODE2.INTENCLR.reg = 0xFE; // disable all callbacks except the 128 Hz one
movement_state.subsecond = 0;
movement_state.tick_frequency = freq;
- watch_rtc_register_periodic_callback(cb_tick, freq);
+ if (freq) watch_rtc_register_periodic_callback(cb_tick, freq);
}
void movement_illuminate_led() {
(void) settings;
char *c = (char *)context;
*c = '@';
+ movement_request_tick_frequency(0);
}
bool character_set_face_loop(movement_event_t event, movement_settings_t *settings, void *context) {
sprintf(buf, "%c%c%c%c%c%c%c%c%c%c", *c, *c, *c, *c, *c, *c, *c, *c, *c, *c);
watch_display_string(buf, 0);
break;
- case EVENT_TICK:
- break;
case EVENT_TIMEOUT:
movement_move_to_face(0);
break;
void character_set_face_resign(movement_settings_t *settings, void *context) {
(void) settings;
(void) context;
+ movement_request_tick_frequency(1);
}