New Nextion display layouts (3 and 4) which let you do all layout processing in the display itsself.

This commit is contained in:
ON7LDS
2017-12-05 20:50:56 +01:00
parent 0514f0607e
commit 59c4ce47f0
7 changed files with 221 additions and 12 deletions

View File

@@ -1115,6 +1115,12 @@ void CMMDVMHost::createDisplay()
case 2U:
LogInfo(" Screen Layout: ON7LDS");
break;
case 3U:
LogInfo(" Screen Layout: DIY by ON7LDS");
break;
case 4U:
LogInfo(" Screen Layout: DIY by ON7LDS (High speed)");
break;
default:
LogInfo(" Screen Layout: %u (Unknown)", screenLayout);
break;
@@ -1127,7 +1133,10 @@ void CMMDVMHost::createDisplay()
if (m_ump != NULL)
m_display = new CNextion(m_callsign, dmrid, m_ump, brightness, displayClock, utc, idleBrightness, screenLayout);
} else {
ISerialPort* serial = new CSerialController(port, SERIAL_9600);
SERIAL_SPEED baudrate = SERIAL_9600;
if (screenLayout==4U)
baudrate = SERIAL_115200;
ISerialPort* serial = new CSerialController(port, baudrate);
m_display = new CNextion(m_callsign, dmrid, serial, brightness, displayClock, utc, idleBrightness, screenLayout);
}
} else if (type == "LCDproc") {