snapshot
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user