From 193795398d0d295c0355a15c18ced2cc16781aae Mon Sep 17 00:00:00 2001 From: danicampora Date: Mon, 28 Mar 2016 13:12:11 +0200 Subject: [PATCH] docs: Correct pin interrupt example code for the WiPy. --- docs/library/machine.Pin.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/library/machine.Pin.rst b/docs/library/machine.Pin.rst index 452e2234e3..6fa2b170e8 100644 --- a/docs/library/machine.Pin.rst +++ b/docs/library/machine.Pin.rst @@ -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