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

@@ -514,11 +514,13 @@ void CMMDVMHost::createDisplay()
LogInfo(" Type: %s", type.c_str());
if (type == "TFT Serial") {
std::string port = m_conf.getTFTSerialPort();
std::string port = m_conf.getTFTSerialPort();
unsigned int brightness = m_conf.getTFTSerialBrightness();
LogInfo(" Port: %s", port.c_str());
LogInfo(" Brightness: %s", brightness);
m_display = new CTFTSerial(port);
m_display = new CTFTSerial(port, brightness);
} else {
m_display = new CNullDisplay;
}