From 4300dff61631143f794f186cadb222bdf5f75a06 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Sun, 3 Oct 2021 20:37:15 -0400 Subject: launcher: first crack at low power 'screensaver' mode --- launcher/launcher.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'launcher/launcher.h') diff --git a/launcher/launcher.h b/launcher/launcher.h index e49575e7..09b33dbb 100644 --- a/launcher/launcher.h +++ b/launcher/launcher.h @@ -25,6 +25,7 @@ typedef enum LauncherEvent { EVENT_NONE = 0, // There is no event to report. EVENT_ACTIVATE, // Your widget is entering the foreground. EVENT_TICK, // Most common event type. Your widget is being called from the tick callback. + EVENT_SCREENSAVER, // Your widget is being asked to display its output for screensaver mode. EVENT_LIGHT_BUTTON_DOWN, // The light button has been pressed, but not yet released. EVENT_LIGHT_BUTTON_UP, // The light button was pressed and released. EVENT_LIGHT_LONG_PRESS, // The light button was held for >2 seconds, and released. @@ -65,6 +66,9 @@ typedef struct LauncherState { uint8_t mode_down_timestamp; uint8_t alarm_down_timestamp; + // screensaver countdown + int32_t screensaver_ticks; + // stuff for subsecond tracking uint8_t tick_frequency; uint8_t last_second; -- cgit v1.2.3