Browse Source

docs/library/machine.Pin.rst: Add Pin.ANALOG mode constant.

pull/8055/head
Scott Armitage 4 years ago
committed by Damien George
parent
commit
de7e3cd792
  1. 3
      docs/library/machine.Pin.rst

3
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 - ``Pin.ALT_OPEN_DRAIN`` - The Same as ``Pin.ALT``, but the pin is configured as
open-drain. Not all ports implement this mode. 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 - ``pull`` specifies if the pin has a (weak) pull resistor attached, and can be
one of: one of:
@ -247,6 +249,7 @@ not all constants are available on all ports.
Pin.OPEN_DRAIN Pin.OPEN_DRAIN
Pin.ALT Pin.ALT
Pin.ALT_OPEN_DRAIN Pin.ALT_OPEN_DRAIN
Pin.ANALOG
Selects the pin mode. Selects the pin mode.

Loading…
Cancel
Save