The section stars with
(My emphasis)All pins except number 16 can be configured to trigger a hard interrupt if their input changes. You can set code (a callback function) to be executed on the trigger.
The example the continues with the following sample code for configuring the interrupts:
Code: Select all
>>> p0.irq(trigger=Pin.IRQ_FALLING, handler=callback)
>>> p2.irq(trigger=Pin.IRQ_RISING | Pin.IRQ_FALLING, handler=callback)
Can someone either explain to my why my logic is wrong, or point me to a place where I can create a pull request or similar for an update to the tutorial?