Linux Library for low speed IO Communication in C with bindings for C++, Python, Node.js & Java. Supports generic io platforms, as well as Intel Edison, Intel Joule, Raspberry Pi and many more.
I'm trying to setup an interrupt using the following provided in example via an IoT2040 using Python 3.8.2
`try:
initialise GPIO
x = mraa.Gpio(pin)
print("Starting ISR for pin " + repr(pin))
# set direction and edge types for interrupt
x.dir(mraa.DIR_IN)
x.isr(mraa.EDGE_BOTH, isr_routine, x)
# wait until ENTER is pressed
var = raw_input("Press ENTER to stop")
x.isrExit()
except ValueError as e:
print(e)
`
Unfortunately, I'm having the following error:
Hi,
I'm trying to setup an interrupt using the following provided in example via an IoT2040 using Python 3.8.2
`try:
initialise GPIO
except ValueError as e: print(e) ` Unfortunately, I'm having the following error:
Any idea ?
Thanks !