From a50dd91e1639fe1602e5b00bf42ebf9ec1e9027c Mon Sep 17 00:00:00 2001 From: Stefan Staub Date: Sat, 25 Jun 2022 16:31:43 +0200 Subject: [PATCH 1/3] move pad strength --- docs/pins.rst | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs/pins.rst b/docs/pins.rst index 49024543..d8ea4ff0 100644 --- a/docs/pins.rst +++ b/docs/pins.rst @@ -60,8 +60,3 @@ it use a non-default pinout with a simple call SPI.setCS(5); SD.begin(5); } - -Pad Strength -============ - -The Raspberry Pi Pico has the ability to set the current that a pin (actually the pad associated with it) is capable of supplying. The current can be set to values of 2mA, 4mA, 8mA and 12mA. By default, on a reset, the setting is 4mA. A `pinMode(x, OUTPUT)`, where `x` is the pin number, is also the default setting. 4 settings have been added for use with `pinMode`: `OUTPUT_2MA`, `OUTPUT_4MA`, which has the same behavior as `OUTPUT`, `OUTPUT_8MA` and `OUTPUT_12MA`. -- 2.54.0 From f83b53c91ccb66186c84d6c894640cd44e26c18c Mon Sep 17 00:00:00 2001 From: Stefan Staub Date: Sat, 25 Jun 2022 16:37:02 +0200 Subject: [PATCH 2/3] add Pad Strength and Input modes --- docs/digital.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/digital.rst b/docs/digital.rst index 730a4b43..212bbea3 100644 --- a/docs/digital.rst +++ b/docs/digital.rst @@ -6,6 +6,14 @@ Board-Specific Pins The Raspberry Pi Pico RP2040 chip supports up to 30 digital I/O pins, however not all boards provide access to all pins. +Input Modes +----------- +The Raspberry Pi Pico has 3 Input modes settings for use with `pinMode`: `INPUT`, `INPUT_PULLUP` and `INPUT_PULLDOWN` + +Output Pad Strength +------------------- +The Raspberry Pi Pico has the ability to set the current that a pin (actually the pad associated with it) is capable of supplying. The current can be set to values of 2mA, 4mA, 8mA and 12mA. By default, on a reset, the setting is 4mA. A `pinMode(x, OUTPUT)`, where `x` is the pin number, is also the default setting. 4 settings have been added for use with `pinMode`: `OUTPUT_2MA`, `OUTPUT_4MA`, which has the same behavior as `OUTPUT`, `OUTPUT_8MA` and `OUTPUT_12MA`. + Tone/noTone ----------- Simple square wave tone generation is possible for up to 8 channels using -- 2.54.0 From 1adfd15f8eeb0e7eb0498fce10ce5262fe826a97 Mon Sep 17 00:00:00 2001 From: Stefan Staub Date: Sat, 25 Jun 2022 16:38:58 +0200 Subject: [PATCH 3/3] Update digital.rst --- docs/digital.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/digital.rst b/docs/digital.rst index 212bbea3..901a3b14 100644 --- a/docs/digital.rst +++ b/docs/digital.rst @@ -10,8 +10,8 @@ Input Modes ----------- The Raspberry Pi Pico has 3 Input modes settings for use with `pinMode`: `INPUT`, `INPUT_PULLUP` and `INPUT_PULLDOWN` -Output Pad Strength -------------------- +Output Modes (Pad Strength) +--------------------------- The Raspberry Pi Pico has the ability to set the current that a pin (actually the pad associated with it) is capable of supplying. The current can be set to values of 2mA, 4mA, 8mA and 12mA. By default, on a reset, the setting is 4mA. A `pinMode(x, OUTPUT)`, where `x` is the pin number, is also the default setting. 4 settings have been added for use with `pinMode`: `OUTPUT_2MA`, `OUTPUT_4MA`, which has the same behavior as `OUTPUT`, `OUTPUT_8MA` and `OUTPUT_12MA`. Tone/noTone -- 2.54.0