![]() |
Deluge Firmware 1.3.0
Build date: 2026.08.23
|
Blanks the OLED, or replaces it with a starfield or a field of Deluge rain, after a configurable period without physical input. More...
#include <screensaver.h>

Static Public Member Functions | |
Event entry points | |
| static void | noteActivity () |
| Register that a physical control was touched: wake the screensaver if it is showing, and re-arm the idle timer either way. | |
| static void | timerEvent () |
| Activate the screensaver, or advance it one animation frame. | |
| static void | settingsChanged () |
| Apply a change to the mode or timeout setting: wake if showing, then re-arm or cancel the timer for the new settings. | |
Display integration | |
| static bool | isActive () |
| Whether the screensaver is currently overriding the panel contents. | |
| static bool | consumeFrameDirty () |
| Test and clear the "our canvas changed" flag. | |
| static oled_canvas::Canvas & | getCanvas () |
| The canvas the screensaver draws into, which sendMainImage() sends in place of main. | |
Static Private Attributes | |
| static bool | active_ = false |
| static bool | frameDirty_ = false |
| static oled_canvas::Canvas | canvas_ |
| static Starfield | starfield_ |
| static Rainfall | rainfall_ |
Blanks the OLED, or replaces it with a starfield or a field of Deluge rain, after a configurable period without physical input.
OLED only: 7SEG units never activate it. All state is static – there is exactly one screensaver.
|
inlinestatic |
Test and clear the "our canvas changed" flag.
Lets sendMainImage() tell "our frame actually changed" apart from "some unrelated timer (scrolling text, working animation) marked the display dirty while we are showing".
|
inlinestatic |
The canvas the screensaver draws into, which sendMainImage() sends in place of main.
|
inlinestaticnodiscard |
Whether the screensaver is currently overriding the panel contents.
|
static |
Register that a physical control was touched: wake the screensaver if it is showing, and re-arm the idle timer either way.
|
static |
Activate the screensaver, or advance it one animation frame.
Dispatched from UITimerManager when TimerName::SCREENSAVER fires.