mathertel / LiquidCrystal_PCF8574

A library for driving LiquidCrystal displays (LCD) by using the I2C bus and an PCF8574 I2C adapter.
https://www.mathertel.de/Arduino/LiquidCrystal_PCF8574.aspx
BSD 3-Clause "New" or "Revised" License
131 stars 53 forks source link

Allow arbitrary pin assignments #24

Closed markisch closed 2 years ago

markisch commented 2 years ago

There are many variants of LCD displays using different pin assignments of the PCF8574 chip. For a list, see e.g. the HD44780 library which lists 4 variants, and I personally own one with yet another.

This adds new constructors and class variables to allow changing the pin layout. _sendNibble() and _write2Wire are updated accordingly.

mathertel commented 2 years ago

Thanks for the contribution