Upgrade the TFT Serial display driver and displayed information.

This commit is contained in:
Jonathan Naylor
2016-02-16 18:30:12 +00:00
parent 3f6189c103
commit 360ca91de0
11 changed files with 182 additions and 58 deletions

View File

@@ -91,7 +91,8 @@ m_fusionNetworkEnabled(false),
m_fusionNetworkAddress(),
m_fusionNetworkPort(0U),
m_fusionNetworkDebug(false),
m_tftSerialPort()
m_tftSerialPort(),
m_tftSerialBrightness(50U)
{
}
@@ -259,6 +260,8 @@ bool CConf::read()
} else if (section == SECTION_TFTSERIAL) {
if (::strcmp(key, "Port") == 0)
m_tftSerialPort = value;
else if (::strcmp(key, "Brightness") == 0)
m_tftSerialBrightness = (unsigned int)::atoi(value);
}
}
@@ -516,3 +519,8 @@ std::string CConf::getTFTSerialPort() const
{
return m_tftSerialPort;
}
unsigned int CConf::getTFTSerialBrightness() const
{
return m_tftSerialBrightness;
}