docs/library/machine.Pin.rst: Document defaults for Pin.init.
This commit is contained in:
parent
7f67524031
commit
6653856b87
|
@ -42,7 +42,7 @@ Usage Model::
|
||||||
Constructors
|
Constructors
|
||||||
------------
|
------------
|
||||||
|
|
||||||
.. class:: Pin(id, mode=-1, pull=-1, *, value, drive, alt)
|
.. class:: Pin(id, mode=-1, pull=-1, *, value=None, drive=0, alt=-1)
|
||||||
|
|
||||||
Access the pin peripheral (GPIO pin) associated with the given ``id``. If
|
Access the pin peripheral (GPIO pin) associated with the given ``id``. If
|
||||||
additional arguments are given in the constructor then they are used to initialise
|
additional arguments are given in the constructor then they are used to initialise
|
||||||
|
@ -108,7 +108,7 @@ Constructors
|
||||||
Methods
|
Methods
|
||||||
-------
|
-------
|
||||||
|
|
||||||
.. method:: Pin.init(mode=-1, pull=-1, *, value, drive, alt)
|
.. method:: Pin.init(mode=-1, pull=-1, *, value=None, drive=0, alt=-1)
|
||||||
|
|
||||||
Re-initialise the pin using the given parameters. Only those arguments that
|
Re-initialise the pin using the given parameters. Only those arguments that
|
||||||
are specified will be set. The rest of the pin peripheral state will remain
|
are specified will be set. The rest of the pin peripheral state will remain
|
||||||
|
|
Loading…
Reference in New Issue