summaryrefslogtreecommitdiff
path: root/docs/library/pyb.Pin.rst
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-06-11 15:53:31 +0200
committerDaniel Campora <daniel@wipy.io>2015-06-16 15:45:24 +0200
commitea2cc2b907c2c82283f7f06c9538008b51051d84 (patch)
tree3a865e7794a9f5fa5d1c1e185283b242886b748c /docs/library/pyb.Pin.rst
parentcdfa11f5503b53824d1c0552ae5fda64422202da (diff)
docs: Add more documentation for the CC3200 in the pyb module.
Diffstat (limited to 'docs/library/pyb.Pin.rst')
-rw-r--r--docs/library/pyb.Pin.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/library/pyb.Pin.rst b/docs/library/pyb.Pin.rst
index 9f9100a78..77a96494e 100644
--- a/docs/library/pyb.Pin.rst
+++ b/docs/library/pyb.Pin.rst
@@ -262,9 +262,9 @@ Methods
Return a 5-tuple with the configuration of the pin:
``(name, alternate-function, mode, type, strength)``
- .. method:: pin.callback(mode, priority=1, handler=None, wakes=pyb.Sleep.ACTIVE)
+ .. method:: pin.callback(\*, mode, priority=1, handler=None, wakes=pyb.Sleep.ACTIVE)
- Create a callback to be triggered when data is received on the UART.
+ Create a callback to be triggered when the input level at the pin changes.
- ``mode`` configures the pin level which can generate an interrupt. Possible values are:
@@ -286,8 +286,8 @@ Methods
of this pins can be enabled as a wake source at the same time, so, only
the last enabled pin as a ``pyb.Sleep.SUSPENDED`` wake source will have effect.
- If ``wakes=pyb.Sleep.SUSPENDED`` pins ``GPIO2``, ``GPIO4``, ``GPIO10``,
- ``GPIO11``, GPIO17`` and ``GPIO24`` can wake the board. In this case all this 6
- pins can be enabled as a ``pyb.Sleep.HIBERNATE`` wake source at the same time.
+ ``GPIO11``, ``GPIO17`` and ``GPIO24`` can wake the board. In this case all of the
+ 6 pins can be enabled as a ``pyb.Sleep.HIBERNATE`` wake source at the same time.
- Values can be ORed to make a pin generate interrupts in more than one power
mode.