Skip to content

Commit abadd20

Browse files
committed
updated.
1 parent 1961a7a commit abadd20

4 files changed

Lines changed: 1086 additions & 0 deletions

File tree

02.inputs/trigger.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)