Skip to content

Commit

Permalink
New Nextion display layouts (3 and 4) which let you do all layout pro…
Browse files Browse the repository at this point in the history
…cessing in the display itsself.
  • Loading branch information
on7lds committed Dec 5, 2017
1 parent 0514f06 commit 59c4ce4
Show file tree
Hide file tree
Showing 7 changed files with 221 additions and 12 deletions.
11 changes: 10 additions & 1 deletion MMDVMHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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") {
Expand Down
Loading

0 comments on commit 59c4ce4

Please sign in to comment.