mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Add config option for Nextion display sizes
This commit is contained in:
parent
dc3fed940c
commit
94aa27cc4b
6 changed files with 19 additions and 4 deletions
|
|
@ -584,13 +584,15 @@ void CMMDVMHost::createDisplay()
|
|||
|
||||
m_display = new CTFTSerial(callsign, dmrid, port, brightness);
|
||||
} else if (type == "Nextion") {
|
||||
std::string size = m_conf.getNextionSize();
|
||||
std::string port = m_conf.getNextionPort();
|
||||
unsigned int brightness = m_conf.getNextionBrightness();
|
||||
|
||||
LogInfo(" Size: %s", size.c_str());
|
||||
LogInfo(" Port: %s", port.c_str());
|
||||
LogInfo(" Brightness: %u", brightness);
|
||||
|
||||
m_display = new CNextion(callsign, dmrid, port, brightness);
|
||||
m_display = new CNextion(callsign, dmrid, size, port, brightness);
|
||||
#if defined(HD44780)
|
||||
} else if (type == "HD44780") {
|
||||
unsigned int rows = m_conf.getHD44780Rows();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue