Skip to content

Commit 3071b3f

Browse files
authored
Update GPIO docs (digital.rst) (#656)
1 parent de069cf commit 3071b3f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

docs/digital.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ Board-Specific Pins
66
The Raspberry Pi Pico RP2040 chip supports up to 30 digital I/O pins,
77
however not all boards provide access to all pins.
88

9+
Input Modes
10+
-----------
11+
The Raspberry Pi Pico has 3 Input modes settings for use with `pinMode`: `INPUT`, `INPUT_PULLUP` and `INPUT_PULLDOWN`
12+
13+
Output Modes (Pad Strength)
14+
---------------------------
15+
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`.
16+
917
Tone/noTone
1018
-----------
1119
Simple square wave tone generation is possible for up to 8 channels using

docs/pins.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,3 @@ it use a non-default pinout with a simple call
6060
SPI.setCS(5);
6161
SD.begin(5);
6262
}
63-
64-
Pad Strength
65-
============
66-
67-
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`.

0 commit comments

Comments
 (0)