Site icon Renzo Mischianti

More than one pcf8574 expander

Could you please provide an example for initializing a few (let's say 4) gpio expanders ? I was thinking on having an array, in order to be able to do something like this: gpioExpander[3].digitalWrite(7, HIGH); Is that possible ? Thanks in advance!
Exit mobile version