summaryrefslogtreecommitdiffstats
path: root/launcher/launcher.h
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-10-03 20:37:15 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-10-03 20:47:15 -0400
commit4300dff61631143f794f186cadb222bdf5f75a06 (patch)
tree85608336dcb17dc2140c33c092eb81c114d9df49 /launcher/launcher.h
parent64485b4255271dca8d6d38a91fa9ace610bf7222 (diff)
downloadSensor-Watch-4300dff61631143f794f186cadb222bdf5f75a06.tar.gz
Sensor-Watch-4300dff61631143f794f186cadb222bdf5f75a06.tar.bz2
Sensor-Watch-4300dff61631143f794f186cadb222bdf5f75a06.zip
launcher: first crack at low power 'screensaver' mode
Diffstat (limited to 'launcher/launcher.h')
-rw-r--r--launcher/launcher.h4
1 files changed, 4 insertions, 0 deletions
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;