mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Upgrade the TFT Serial display driver and displayed information.
This commit is contained in:
parent
3f6189c103
commit
360ca91de0
11 changed files with 182 additions and 58 deletions
10
Conf.cpp
10
Conf.cpp
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue