Skip to content

Commit 1937953

Browse files
author
danicampora
committed
docs: Correct pin interrupt example code for the WiPy.
1 parent 71d40f1 commit 1937953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/library/machine.Pin.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Usage Model:
2424
print(pin.id())
2525

2626
pin_int = Pin('GP10', mode=Pin.IN, pull=Pin.PULL_DOWN)
27-
pin_int.irq(mode=Pin.IRQ_RISING, handler=pincb)
27+
pin_int.irq(trigger=Pin.IRQ_RISING, handler=pincb)
2828
# the callback can be triggered manually
2929
pin_int.irq()()
3030
# to disable the callback

0 commit comments

Comments
 (0)