xreef / PCF8575_library

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.
MIT License
53 stars 19 forks source link

Request: initial pin state on begin #3

Closed codewise-nicolas closed 4 years ago

codewise-nicolas commented 4 years ago

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.

xreef commented 4 years ago

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