I am using the Adafruit bonnet with a C program to control a 32x32 matrix. I need to be able to use a free GPIO pin as an input to connect to a PIR sensor. I have used the included example code input-example and I can see GPIO 19 to which the PIR sensor is attached toggle successfully. Unfortunately the AwaitInputChange function is not available in the rgb led matrix C interface.
Has anyone been able to use a free GPIO pin as input using the C interface? If so I would like to know how you did it.