Merge pull request #131 from g0wfv/develop
Add I2C device address in startup info
This commit is contained in:
commit
ac4715150a
1 changed files with 6 additions and 0 deletions
|
@ -875,7 +875,12 @@ void CMMDVMHost::createDisplay()
|
||||||
if (pins.size() == 6U) {
|
if (pins.size() == 6U) {
|
||||||
LogInfo(" Rows: %u", rows);
|
LogInfo(" Rows: %u", rows);
|
||||||
LogInfo(" Columns: %u", columns);
|
LogInfo(" Columns: %u", columns);
|
||||||
|
|
||||||
|
#if defined(ADAFRUIT_DISPLAY) || defined(PCF8574_DISPLAY)
|
||||||
|
LogInfo(" Device Address: %#x", i2cAddress);
|
||||||
|
#else
|
||||||
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));
|
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));
|
||||||
|
#endif
|
||||||
|
|
||||||
LogInfo(" PWM Backlight: %s", pwm ? "yes" : "no");
|
LogInfo(" PWM Backlight: %s", pwm ? "yes" : "no");
|
||||||
if (pwm) {
|
if (pwm) {
|
||||||
|
@ -891,6 +896,7 @@ void CMMDVMHost::createDisplay()
|
||||||
m_display = new CHD44780(rows, columns, m_callsign, dmrid, pins, i2cAddress, pwm, pwmPin, pwmBright, pwmDim, displayClock, utc, m_duplex);
|
m_display = new CHD44780(rows, columns, m_callsign, dmrid, pins, i2cAddress, pwm, pwmPin, pwmBright, pwmDim, displayClock, utc, m_duplex);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(OLED)
|
#if defined(OLED)
|
||||||
} else if (type == "OLED") {
|
} else if (type == "OLED") {
|
||||||
unsigned char displayType = m_conf.getOLEDType();
|
unsigned char displayType = m_conf.getOLEDType();
|
||||||
|
|
Loading…
Reference in a new issue