Has anyone used the PCF8574 as an input expander?
I've tried this library, https://github.com/BetaRavener/micropyt ... er/PCF8574 and have been successful using it to turn on LEDs etc, but can't seem to get inputs working. pcf.read8() returns a [0] regardless of input status.
Thanks.
PCF8574 Inputs
Re: PCF8574 Inputs
Using it to drive 16x2 LCDs, using a LCD backpack, as an output expander:
https://github.com/dhylands/python_lcd/ ... i2c_lcd.py
I have a generic one which is not attached to a LCD.
https://www.aliexpress.com/item/PCF8574 ... 58823.html
Never used it for input though, only output.
I'll try to get it working with the library and share my results.
https://github.com/dhylands/python_lcd/ ... i2c_lcd.py
I have a generic one which is not attached to a LCD.
https://www.aliexpress.com/item/PCF8574 ... 58823.html
Never used it for input though, only output.
I'll try to get it working with the library and share my results.