vanvught / rpidmx512

Orange Pi DMX512 / RDM / MIDI / OSC / Art-Net / WS28xx / L6470 / Stepper / TLC59711 / PCA9685 / Servo / PWM / TCNet / SMPTE / RDMNet / LLRP / GD32 / GigaDevice / Raspberry Pi
http://www.orangepi-dmx.org/
MIT License
398 stars 108 forks source link

LTC SMPTE: Improve support for PCF8574T_1602, PCF8574T_2004 #238

Closed vanvught closed 2 years ago

vanvught commented 2 years ago

Reference https://github.com/vanvught/h3dmx512-zip/issues/17

Currently the auto-detect is not possible to know if there is a 16x2 or 20x4 display attached. With this improvement, the 16x2 display must use a different I2C address -> 0x26

namespace hd44780 {
namespace pcf8574t {
static constexpr uint8_t DEFAULT_ADDRESS = 0x27;
static constexpr uint8_t TC2004_ADDRESS = DEFAULT_ADDRESS;
static constexpr uint8_t TC1602_ADDRESS = 0x26;
}  // namespace pcf8574t
}  // namespace hd44780