This commit is contained in:
2026-02-16 02:01:27 -08:00
parent 9790fd4a31
commit 185067e5d5
6 changed files with 72 additions and 43 deletions

View File

@@ -21,6 +21,13 @@ enum class ScreenID : uint8_t {
OFF // backlight off, nothing to draw
};
#define ALERT_HISTORY_SIZE 3
struct AlertRecord {
char message[64] = "";
char timestamp[12] = ""; // "HH:MM:SS"
};
// Everything the display needs to render any screen
struct ScreenState {
ScreenID screen = ScreenID::BOOT_SPLASH;
@@ -47,6 +54,11 @@ struct ScreenState {
// Debug
bool debugMode = false;
// Alert history (newest first)
AlertRecord alertHistory[ALERT_HISTORY_SIZE] = {};
int alertHistoryCount = 0;
};
// Touch event passed from display to logic