launcher: first crack at low power 'screensaver' mode

This commit is contained in:
Joey Castillo
2021-10-03 20:37:15 -04:00
parent 64485b4255
commit 4300dff616
6 changed files with 84 additions and 42 deletions

View File

@@ -151,11 +151,8 @@ void _watch_disable_all_peripherals_except_slcd() {
MCLK->APBCMASK.reg &= ~MCLK_APBCMASK_SERCOM3;
}
void watch_enter_shallow_sleep(char *message) {
if (message != NULL) {
watch_display_string(" ", 0);
watch_display_string(message, 0);
} else {
void watch_enter_shallow_sleep(bool display_on) {
if (!display_on) {
slcd_sync_deinit(&SEGMENT_LCD_0);
hri_mclk_clear_APBCMASK_SLCD_bit(SLCD);
}