|
ESP32 pin | SD name | SD pin | μSD pin | SPI pin | Notes |
GPIO14 (MTMS) | CLK | 5 | 5 | SCK | 10k pullup in SD mode |
GPIO15 (MTDO) | CMD / DI | 2 | 3 | MOSI | 10k pullup, both in SD and SPI modes |
GPIO2 | DAT0 / DO | 7 | 7 | MISO | 10k pullup in SD mode (Note) |
GPIO4 | DAT1 | 8 | 8 | N/C | not used in 1-line SD mode; 10k pullup in 4-line SD mode |
GPIO12 (MTDI) | DAT2 | 9 | 1 | N/C | not used in 1-line SD mode; 10k pullup in 4-line SD mode (Note) |
GPIO13 (MTCK) | DAT3 | 1 | 2 | CS | not used in 1-line SD mode, card's DAT3 pin must have a 10k pullup |
N/C | CD | Card Detect, optional, not used by driver | |||
N/C | WP | Write Protect, optional, not used by driver | |||
VDD (3.3V) | VDD | 4 | 4 | ||
GND | GND VSS VSS1,VSS2 | 3&6 | 6 |