docs: Correct pin interrupt example code for the WiPy.
This commit is contained in:
parent
71d40f132d
commit
193795398d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue