We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c4c80e commit 61acd77Copy full SHA for 61acd77
irq/irq.py
@@ -1,5 +1,4 @@
1
from machine import Pin
2
3
p2 = Pin(2, Pin.IN, Pin.PULL_UP)
4
-p2.irq(lambda pin: print("IRQ with flags:", pin.irq().flags()),
5
-Pin.IRQ_FALLING)
+p2.irq(lambda pin: print("IRQ with flags:", pin.irq().flags()), Pin.IRQ_FALLING)
0 commit comments