We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1961a7a commit abadd20Copy full SHA for abadd20
4 files changed
02.inputs/trigger.py
@@ -0,0 +1,6 @@
1
+
2
+def pin_change(p):
3
+ print('pin change', p)
4
5
+from machine import Pin
6
+Pin(34, Pin.IN).irq(trigger=Pin.IRQ_RISING, handler=pin_change)
0 commit comments