summaryrefslogtreecommitdiff
path: root/docs/library
diff options
context:
space:
mode:
authorJonathan Hogg <me@jonathanhogg.com>2022-03-07 09:03:54 +0000
committerDamien George <damien@micropython.org>2022-03-07 23:47:45 +1100
commit3ebc370344ce5583b8615881a80749f855622aa5 (patch)
tree2b98385de48c5a5a75dfe5d6178f5de9c345e98a /docs/library
parent4c7c80d6266c6362253755c92bf649dc85c47dae (diff)
docs/library/machine.Pin: Update to use preferred DRIVE_x constants.
Update documents with new common names for the drive strength constants.
Diffstat (limited to 'docs/library')
-rw-r--r--docs/library/machine.Pin.rst16
1 files changed, 9 insertions, 7 deletions
diff --git a/docs/library/machine.Pin.rst b/docs/library/machine.Pin.rst
index f80de1178..49fb66beb 100644
--- a/docs/library/machine.Pin.rst
+++ b/docs/library/machine.Pin.rst
@@ -87,9 +87,9 @@ Constructors
output pin value if given, otherwise the state of the pin peripheral remains
unchanged.
- - ``drive`` specifies the output power of the pin and can be one of: ``Pin.LOW_POWER``,
- ``Pin.MED_POWER`` or ``Pin.HIGH_POWER``. The actual current driving capabilities
- are port dependent. Not all ports implement this argument.
+ - ``drive`` specifies the output power of the pin and can be one of: ``Pin.DRIVE_0``,
+ ``Pin.DRIVE_1``, etc., increasing in drive strength. The actual current driving
+ capabilities are port dependent. Not all ports implement this argument.
- ``alt`` specifies an alternate function for the pin and the values it can take are
port dependent. This argument is valid only for ``Pin.ALT`` and ``Pin.ALT_OPEN_DRAIN``
@@ -260,11 +260,13 @@ not all constants are available on all ports.
Selects whether there is a pull up/down resistor. Use the value
``None`` for no pull.
-.. data:: Pin.LOW_POWER
- Pin.MED_POWER
- Pin.HIGH_POWER
+.. data:: Pin.DRIVE_0
+ Pin.DRIVE_1
+ Pin.DRIVE_2
- Selects the pin drive strength.
+ Selects the pin drive strength. A port may define additional drive
+ constants with increasing number corresponding to increasing drive
+ strength.
.. data:: Pin.IRQ_FALLING
Pin.IRQ_RISING