diff options
| author | Jos Verlinde <jos.verlinde@microsoft.com> | 2022-02-07 22:13:26 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-02-09 15:55:10 +1100 |
| commit | 6653856b87a76adc5584bb72b32924719effa970 (patch) | |
| tree | 00befd2119909d8637ff7c1df7c719380187ea2c | |
| parent | 7f67524031a04d972ba59a50e5e320adadbcb893 (diff) | |
docs/library/machine.Pin.rst: Document defaults for Pin.init.
| -rw-r--r-- | docs/library/machine.Pin.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/library/machine.Pin.rst b/docs/library/machine.Pin.rst index 32fa05b49..f80de1178 100644 --- a/docs/library/machine.Pin.rst +++ b/docs/library/machine.Pin.rst @@ -42,7 +42,7 @@ Usage Model:: 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 additional arguments are given in the constructor then they are used to initialise @@ -108,7 +108,7 @@ Constructors 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 are specified will be set. The rest of the pin peripheral state will remain |
