mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
Allow for the configuration of the HD44780 pins.
This commit is contained in:
parent
f7e2cff004
commit
3ee457830b
6 changed files with 42 additions and 7 deletions
|
|
@ -577,11 +577,15 @@ void CMMDVMHost::createDisplay()
|
|||
} else if (type == "HD44780") {
|
||||
unsigned int rows = m_conf.getHD44780Rows();
|
||||
unsigned int columns = m_conf.getHD44780Columns();
|
||||
std::vector<unsigned int> pins = m_conf.getHD44780Pins();
|
||||
|
||||
LogInfo(" Rows: %u", rows);
|
||||
LogInfo(" Columns: %u", columns);
|
||||
if (pins.size() == 6U) {
|
||||
LogInfo(" Rows: %u", rows);
|
||||
LogInfo(" Columns: %u", columns);
|
||||
LogInfo(" Pins: %u,%u,%u,%u,%u,%u", pins.at(0U), pins.at(1U), pins.at(2U), pins.at(3U), pins.at(4U), pins.at(5U));
|
||||
|
||||
m_display = new CHD44780(rows, columns);
|
||||
m_display = new CHD44780(rows, columns, pins);
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
m_display = new CNullDisplay;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue