Add Config option to dim Nextion display in idle

state
This commit is contained in:
phl0
2016-06-24 09:30:46 +02:00
parent 18fa0df5d3
commit 7e906f3fdd
6 changed files with 42 additions and 11 deletions

View File

@@ -29,7 +29,7 @@
class CNextion : public CDisplay
{
public:
CNextion(const std::string& callsign, unsigned int dmrid, const std::string& port, unsigned int brightness, bool displayClock, bool utc, const std::string& dateformat);
CNextion(const std::string& callsign, unsigned int dmrid, const std::string& port, unsigned int brightness, bool displayClock, bool utc, const std::string& dateformat, bool dimOnIdle);
virtual ~CNextion();
virtual bool open();
@@ -61,6 +61,7 @@ private:
bool m_displayClock;
bool m_utc;
std::string m_dateformat;
bool m_dimOnIdle;
CTimer m_clockDisplayTimer;
void sendCommand(const char* command);