feat(doorbell): add staged boot sequence and refactor main loop
This commit is contained in:
@@ -19,7 +19,7 @@ public:
|
||||
int height() override { return DISPLAY_HEIGHT; }
|
||||
|
||||
private:
|
||||
void drawBoot();
|
||||
void drawBoot(const ScreenState& st);
|
||||
void drawAlert(const ScreenState& st);
|
||||
void drawDashboard(const ScreenState& st);
|
||||
|
||||
@@ -28,5 +28,6 @@ private:
|
||||
bool _holdActive = false;
|
||||
uint32_t _holdStartMs = 0;
|
||||
ScreenID _lastScreen = ScreenID::BOOT;
|
||||
BootStage _lastBootStage = BootStage::SPLASH;
|
||||
bool _needsRedraw = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user