There was an error while loading. Please reload this page.
1 parent 71d40f1 commit 1937953Copy full SHA for 1937953
docs/library/machine.Pin.rst
@@ -24,7 +24,7 @@ Usage Model:
24
print(pin.id())
25
26
pin_int = Pin('GP10', mode=Pin.IN, pull=Pin.PULL_DOWN)
27
- pin_int.irq(mode=Pin.IRQ_RISING, handler=pincb)
+ pin_int.irq(trigger=Pin.IRQ_RISING, handler=pincb)
28
# the callback can be triggered manually
29
pin_int.irq()()
30
# to disable the callback
0 commit comments