We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 36191d3 + 61acd77 commit ca2cc66Copy full SHA for ca2cc66
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