The CP-IO22-A4-2 is an IO board accessory for the ComfilePi consisting of 22 digital IO (11 inputs, 11 outputs), 4 16-bit analog inputs, 2 12-bit analog outputs, screw terminals, and indicator LEDs. It can be mounted to the rear panel of the ComfilePi.
The following is an example project illustrating how to program the CP-IO22-A4-2 in C# using the Mono Framework.
This example PInvoke's the pigpio library. For more information see the PInvoke documentation and the pigpiod C interface documentation
.NET 5 drivers can be found at the .NET IoT Libraries API Reference.
CP-IO22-A4-2 pins are connected to the ComfilePi's GPIO header as shown below.
It may be necessary to modify the ComfilePi's initial GPIO output state to prevent the ComfilePi from turning the outputs ON when the ComfilePi boots. Use the following file to replace /boot/dt-blog.bin
.