Skip to content
Snippets Groups Projects
Commit 19379539 authored by danicampora's avatar danicampora
Browse files

docs: Correct pin interrupt example code for the WiPy.

parent 71d40f13
Branches
Tags
No related merge requests found
...@@ -24,7 +24,7 @@ Usage Model: ...@@ -24,7 +24,7 @@ Usage Model:
print(pin.id()) print(pin.id())
pin_int = Pin('GP10', mode=Pin.IN, pull=Pin.PULL_DOWN) pin_int = Pin('GP10', mode=Pin.IN, pull=Pin.PULL_DOWN)
pin_int.irq(mode=Pin.IRQ_RISING, handler=pincb) pin_int.irq(trigger=Pin.IRQ_RISING, handler=pincb)
# the callback can be triggered manually # the callback can be triggered manually
pin_int.irq()() pin_int.irq()()
# to disable the callback # to disable the callback
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment