While testing an Output Plug, I found a little mess-up: the documentation pinout is wrong, all even and odd I/O pins on the 2×6 output connector were swapped. Here is the correct pinout:
I’ve updated the documentation.
The “expander” sketch is also very confusing, it was still for the PCA8574A, whereas the current Expander Plug uses an MCP23008.
Here’s an improved sketch, with a little running-light demo:
This code has been checked in to replace the “expander.pde” sketch in the Ports examples.