Here the test of my library for pcf8575, usable with esp8266, esp32 and Arduino.
This IC is an i2c input output 16bit expander, can add 16 digital pint to your microcontroller.
You can find more information on my site
https://www.mischianti.org/2019/07/22...
or directly on github
https://github.com/xreef/PCF8575_library