mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-01-06 04:44:50 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user