dhylands / python_lcd

Python based library for talking to character based LCDs.
MIT License
298 stars 116 forks source link

Pin assignment #11

Closed calston closed 7 years ago

calston commented 7 years ago

Hi

Do you have some indication of the expected pin assignment between the PCF8574 and the LCD?

calston commented 7 years ago

Nevermind, figured it out from the link

dhylands commented 7 years ago

Here's the assignment for the backpack I used: https://github.com/dhylands/python_lcd/blob/master/lcd/pyb_i2c_lcd.py#L11-L15

It's formed as masks/shifts rather than pin numbers. Pin 0 - RS Pin 1 - RW Pin 2 - E Pin 3 - Backlight Pins 4-7 - Data0 thru Data3