Multiple shields sample

This firmware demonstrates how to use multiple Power IO Shields with the Ardep platform. It configures 2 Power IO Shields, one set to addres 0 and the other to address 1.

Flash and run

Build the firmware with:

west build -b ardep samples/power_io_shield/multiple/

Flash it using dfu-util:

west flash

Expected behavior

Both Power IO Shields’ outputs should count up in binary every second. The inputs and faults are also logged once every second.

Note

Don’t forget to connect a suitable power supply to the Power IO Shield to see the outputs toggling. See Power IO Shield Power supply for more information