Refactor power saving logic into display drivers and add ST7789 support
This commit is contained in:
@@ -44,6 +44,14 @@ public:
|
||||
void clear_display(); // Full clear with refresh
|
||||
void full_refresh(); // Force full screen refresh (slower but removes ghosting)
|
||||
void sleep(); // Put display in low power mode
|
||||
|
||||
// Power saving hooks
|
||||
void on_idle_2min() override;
|
||||
void on_idle_10min() override;
|
||||
void on_user_interaction() override;
|
||||
|
||||
private:
|
||||
bool is_sleeping = false;
|
||||
};
|
||||
|
||||
#endif // LOW_LEVEL_DISPLAY_EPAPER_H
|
||||
|
||||
Reference in New Issue
Block a user