wfraser / lcd-pcf8574

Rust support for some common I2C LCD modules.
Other
7 stars 2 forks source link

Support for custom GPIO Pin wiring #2

Open ronnybremer opened 4 days ago

ronnybremer commented 4 days ago

Thank you for providing this crate, it simplifies interacting with the LCD displays attached to a PCF8574 a lot!

Since I am using a Joy-IT RB-LCD-20x4 display I would need to adopt the Pin layout, which at the moment is fixed inside of the Hardware implementation. My first take is to have a new Enum, like LCDType which has the values Defaultand JoyIT and depending on the value of this Enum the pins are routed differently inside of impl Hardware. Would that work or do you have a better approach? I can submit a PR for that.

ronnybremer commented 4 days ago

See https://github.com/joy-it/PCF8574-LCD