docs: Correct pin interrupt example code for the WiPy.

This commit is contained in:
danicampora 2016-03-28 13:12:11 +02:00
parent 71d40f132d
commit 193795398d
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ Usage Model:
print(pin.id())
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
pin_int.irq()()
# to disable the callback