summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library
diff options
context:
space:
mode:
authorScott Armitage <accounts.github@scott.armitage.space>2020-09-03 10:49:27 -0700
committerDamien George <damien@micropython.org>2021-11-30 22:33:18 +1100
commitde7e3cd792d1d4cf6c4b3895d431fc8bc516b51b (patch)
treef0478e4caeb507b24ba820e682dd6f7e449f6e6c /docs/library
parent68d1245f423bc98fb7accb86deab10acacd6a9d8 (diff)
downloadmicropython-de7e3cd792d1d4cf6c4b3895d431fc8bc516b51b.tar.gz
micropython-de7e3cd792d1d4cf6c4b3895d431fc8bc516b51b.zip
docs/library/machine.Pin.rst: Add Pin.ANALOG mode constant.
Diffstat (limited to 'docs/library')
-rw-r--r--docs/library/machine.Pin.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/library/machine.Pin.rst b/docs/library/machine.Pin.rst
index f8e9e1054d..32fa05b49c 100644
--- a/docs/library/machine.Pin.rst
+++ b/docs/library/machine.Pin.rst
@@ -74,6 +74,8 @@ Constructors
- ``Pin.ALT_OPEN_DRAIN`` - The Same as ``Pin.ALT``, but the pin is configured as
open-drain. Not all ports implement this mode.
+ - ``Pin.ANALOG`` - Pin is configured for analog input, see the :class:`ADC` class.
+
- ``pull`` specifies if the pin has a (weak) pull resistor attached, and can be
one of:
@@ -247,6 +249,7 @@ not all constants are available on all ports.
Pin.OPEN_DRAIN
Pin.ALT
Pin.ALT_OPEN_DRAIN
+ Pin.ANALOG
Selects the pin mode.