Skip to content

Commit a650091

Browse files
committed
Matched pin numbers in doco to numbers in variants files
1 parent e92b4ca commit a650091

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

libraries/SD/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ Some ESP32 modules have different pin outs!
1818
## Default SPI pins:
1919
Note that SPI pins can be configured by using `SPI.begin(sck, miso, mosi, cs);` alternatively, you can change only the CS pin with `SD.begin(CSpin)`
2020

21-
| SPI Pin Name | ESP8266 | ESP32 | ESP32-S2 | ESP32-C3 | ESP32-S3 |
22-
|--------------|---------|-------|----------|----------|----------|
23-
| CS (SS) | GPIO15 | GPIO5 | GPIO5 | GPIO13 | GPIO13 |
24-
| DI (MOSI) | GPIO13 | GPIO23| GPIO24 | GPIO14 | GPIO14 |
25-
| DO (MISO) | GPIO12 | GPIO19| GPIO25 | GPIO15 | GPIO15 |
26-
| SCK (SCLK) | GPIO14 | GPIO18| GPIO19 | GPIO16 | GPIO16 |
21+
| SPI Pin Name | ESP8266 | ESP32 | ESP32-S2 | ESP32-S3 | ESP32-C3 | ESP32-C6 | ESP32-H2 |
22+
|--------------|---------|-------|----------|----------|----------|----------|----------|
23+
| CS (SS) | GPIO15 | GPIO5 | GPIO34 | GPIO10 | GPIO7 | GPIO18 | GPIO0 |
24+
| DI (MOSI) | GPIO13 | GPIO23| GPIO35 | GPIO11 | GPIO6 | GPIO19 | GPIO25 |
25+
| DO (MISO) | GPIO12 | GPIO19| GPIO37 | GPIO13 | GPIO5 | GPIO20 | GPIO11 |
26+
| SCK (SCLK) | GPIO14 | GPIO18| GPIO36 | GPIO12 | GPIO4 | GPIO21 | GPIO10 |
2727

2828
## FAQ:
2929

libraries/SD/examples/SD_Test/SD_Test.ino

+11-11
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
* Note: The SPI pins can be manually configured by using `SPI.begin(sck, miso, mosi, cs).`
2323
* Alternatively, you can change the CS pin and use the other default settings by using `SD.begin(cs)`.
2424
*
25-
* +--------------+---------+-------+----------+----------+----------+
26-
* | SPI Pin Name | ESP8266 | ESP32 | ESP32-S2 | ESP32-C3 | ESP32-S3 |
27-
* +==============+=========+=======+==========+==========+==========+
28-
* | CS (SS) | GPIO15 | GPIO5 | GPIO5 | GPIO13 | GPIO13 |
29-
* +--------------+---------+-------+----------+----------+----------+
30-
* | DI (MOSI) | GPIO13 | GPIO23| GPIO24 | GPIO14 | GPIO14 |
31-
* +--------------+---------+-------+----------+----------+----------+
32-
* | DO (MISO) | GPIO12 | GPIO19| GPIO25 | GPIO15 | GPIO15 |
33-
* +--------------+---------+-------+----------+----------+----------+
34-
* | SCK (SCLK) | GPIO14 | GPIO18| GPIO19 | GPIO16 | GPIO16 |
35-
* +--------------+---------+-------+----------+----------+----------+
25+
* +--------------+---------+-------+----------+----------+----------+----------+----------+
26+
* | SPI Pin Name | ESP8266 | ESP32 | ESP32-S2 | ESP32-S3 | ESP32-C3 | ESP32-C6 | ESP32-H2 |
27+
* +==============+=========+=======+==========+==========+==========+==========+==========+
28+
* | CS (SS) | GPIO15 | GPIO5 | GPIO34 | GPIO10 | GPIO7 | GPIO18 | GPIO0 |
29+
* +--------------+---------+-------+----------+----------+----------+----------+----------+
30+
* | DI (MOSI) | GPIO13 | GPIO23| GPIO35 | GPIO11 | GPIO6 | GPIO19 | GPIO25 |
31+
* +--------------+---------+-------+----------+----------+----------+----------+----------+
32+
* | DO (MISO) | GPIO12 | GPIO19| GPIO37 | GPIO13 | GPIO5 | GPIO20 | GPIO11 |
33+
* +--------------+---------+-------+----------+----------+----------+----------+----------+
34+
* | SCK (SCLK) | GPIO14 | GPIO18| GPIO36 | GPIO12 | GPIO4 | GPIO21 | GPIO10 |
35+
* +--------------+---------+-------+----------+----------+----------+----------+----------+
3636
*
3737
* For more info see file README.md in this library or on URL:
3838
* https://github.com/espressif/arduino-esp32/tree/master/libraries/SD

libraries/SD/examples/SD_time/SD_time.ino

+11-11
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
* Note: The SPI pins can be manually configured by using `SPI.begin(sck, miso, mosi, cs);`.
2323
* Alternatively you can change only the CS pin with `SD.begin(CSpin)` and keep the default settings for other pins.
2424
*
25-
* +--------------+---------+-------+----------+----------+----------+
26-
* | SPI Pin Name | ESP8266 | ESP32 | ESP32-S2 | ESP32-C3 | ESP32-S3 |
27-
* +==============+=========+=======+==========+==========+==========+
28-
* | CS (SS) | GPIO15 | GPIO5 | GPIO5 | GPIO13 | GPIO13 |
29-
* +--------------+---------+-------+----------+----------+----------+
30-
* | DI (MOSI) | GPIO13 | GPIO23| GPIO24 | GPIO14 | GPIO14 |
31-
* +--------------+---------+-------+----------+----------+----------+
32-
* | DO (MISO) | GPIO12 | GPIO19| GPIO25 | GPIO15 | GPIO15 |
33-
* +--------------+---------+-------+----------+----------+----------+
34-
* | SCK (SCLK) | GPIO14 | GPIO18| GPIO19 | GPIO16 | GPIO16 |
35-
* +--------------+---------+-------+----------+----------+----------+
25+
+----------+
26+
* | SPI Pin Name | ESP8266 | ESP32 | ESP32-S2 | ESP32-S3 | ESP32-C3 | ESP32-C6 | ESP32-H2 |
27+
* +==============+=========+=======+==========+==========+==========+==========+==========+
28+
* | CS (SS) | GPIO15 | GPIO5 | GPIO34 | GPIO10 | GPIO7 | GPIO18 | GPIO0 |
29+
* +--------------+---------+-------+----------+----------+----------+----------+----------+
30+
* | DI (MOSI) | GPIO13 | GPIO23| GPIO35 | GPIO11 | GPIO6 | GPIO19 | GPIO25 |
31+
* +--------------+---------+-------+----------+----------+----------+----------+----------+
32+
* | DO (MISO) | GPIO12 | GPIO19| GPIO37 | GPIO13 | GPIO5 | GPIO20 | GPIO11 |
33+
* +--------------+---------+-------+----------+----------+----------+----------+----------+
34+
* | SCK (SCLK) | GPIO14 | GPIO18| GPIO36 | GPIO12 | GPIO4 | GPIO21 | GPIO10 |
35+
* +--------------+---------+-------+----------+----------+----------+----------+----------+
3636
*
3737
* For more info see file README.md in this library or on URL:
3838
* https://github.com/espressif/arduino-esp32/tree/master/libraries/SD

0 commit comments

Comments
 (0)