Is there a non-polling way to detect when an input goes from OFF to ON with the Raspberry Pi Pico MicroController?
I see the Raspberry Pi allows one to do something like below to detect rising edges on a GPIO port (reference: https://forums.raspberrypi.com/viewtopic.php?t=184361):
import RPi.GPIO as GPIO
GPIO.add_event_detect(<pin number>, GPIO.RISING, callback=<callback>)
Is there a similar API available for the Pico? When I try the above on Thonny/Pico, it fails because it doesn't recognize the GPIO module.