Nodemcu v3 connected in 2 pcf8574 with 8relays and push button

If by this:

you mean the library, then you don't need to understand how the code works internally. Just look at the header file and at the example file (most libraries come with one).

This is too vague. Your goal may be clear to you, but unless you explain it, nobody else will know what it is.

1 Like