diff options
| author | danicampora <daniel@wipy.io> | 2016-03-28 13:12:11 +0200 |
|---|---|---|
| committer | danicampora <daniel@wipy.io> | 2016-03-28 13:12:58 +0200 |
| commit | 193795398d0d295c0355a15c18ced2cc16781aae (patch) | |
| tree | 1004a96a9192ff8cda06b4e84f6a7bf54726bf43 /docs/library | |
| parent | 71d40f132d1fe92624b47de21b17611c9d57011b (diff) | |
docs: Correct pin interrupt example code for the WiPy.
Diffstat (limited to 'docs/library')
| -rw-r--r-- | docs/library/machine.Pin.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/library/machine.Pin.rst b/docs/library/machine.Pin.rst index 452e2234e..6fa2b170e 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 |
