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
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue