i2c 16bits digital expander with i2c digital expander for Arduino, Raspberry Pi Pico and rp2040 boards, esp32, SMT32 and ESP8266. Can read write digital values with only 2 wire. Very simple and encoder support. Uncommet NOT_SEQUENTIAL_PINOUT define to have pins like datasheet and not sequential one.
Currently I hacked the .cpp file on line 179 as follows:
uint16_t usedPin = readMode; //writeMode |
And this works (as per datasheet 0 on a write call sets the pin low) but have not fully tested it.
Hi codewise-nicolas,
sorry I lost this issue, now I don't do that change, the develop of pcf8574 isn't so simple,
but If I fond some time I update also this library with the same features.
Bye Renzo
Any chance you can do the same fix you did here https://github.com/xreef/PCF8574_library/issues/15 to the PCF8575 library ? This would allow setting the pin state on .begin().
Currently I hacked the .cpp file on line 179 as follows:
uint16_t usedPin = readMode; //writeMode |
And this works (as per datasheet 0 on a write call sets the pin low) but have not fully tested it.