Feature: Turn off Display before reboot

Thanks for the idea to @StefanOberhumer
This prevents always on Display if the device profile does not contain Display pins anymore after the reboot
This commit is contained in:
Thomas Basler
2023-08-25 16:57:24 +02:00
parent c91bd42a77
commit 701c490654
3 changed files with 20 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ public:
void init(DisplayType_t type, uint8_t data, uint8_t clk, uint8_t cs, uint8_t reset);
void loop();
void setContrast(uint8_t contrast);
void setStatus(bool turnOn);
void setOrientation(uint8_t rotation = DISPLAY_ROTATION);
void setLanguage(uint8_t language);
void setStartupDisplay();
@@ -33,6 +34,8 @@ private:
U8G2* _display;
bool _displayTurnedOn;
DisplayType_t _display_type = DisplayType_t::None;
uint8_t _display_language = DISPLAY_LANGUAGE;
uint8_t _mExtra;