In this technical tutorial we look at using a PCF8574 as a GPIO extender for an ESP32. We illustrate it driving an array of LEDs and look at how its access can be encapsulated in a C++ class.
The sample PCF8574 class can be found here ...
https://github.com/nkolban/esp32-snip...