The CP-IO22 is an IO board accessory for the ComfilePi consisting of 22 IO (11 inputs, 11 outputs) screw terminals, and corresponding 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 in C# or VB.Net using the Mono Framework.
.NET 5 drivers can be found at the .NET IoT Libraries API Reference.
The CP-IO22 pins are connected to the ComfilePi's GPIO header as shown below.
Inputs: GPIO 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16
Outputs: GPIO 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27
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.
Modify the ComfilePi's /boot/config.txt file with the following configuration to set the initial IO state. See GPIO control in config.txt for more information.
gpio=4-13=ip gpio=16=ip gpio=17-27=op,np,dl