|
32 | 32 | #include "SD_MMC.h"
|
33 | 33 |
|
34 | 34 | // Default pins for ESP-S3
|
35 |
| -// Warning: ESP32-S3-WROOM-2 is using most of the default SD_MMC GPIOs (33-37) to interface with on-board OPI flash. |
36 |
| -// If the SD_MMC is initialized with default pins it will result in rebooting loop - please |
37 |
| -// reassign the pins elsewhere using the mentioned command `setPins`. |
| 35 | +// Warning: ESP32-S3-WROOM-2 is using most of the default SD_MMC GPIOs (33-37) to interface with the on-board OPI flash. |
| 36 | +// If the SD_MMC is initialized with the default pins it will result in rebooting loop. |
| 37 | +// Please reassign the pins elsewhere using the mentioned command `setPins`. |
38 | 38 | // Note: ESP32-S3-WROOM-1 does not have GPIO 33 and 34 broken out.
|
39 | 39 | // Note: The board ESP32-S3-USB-OTG has predefined default pins and the following definitions with the setPins() call will not be compiled.
|
40 | 40 | // Note: Pins in this definition block are ordered from top down in order in which they are on the full-sized SD card
|
41 | 41 | // from left to right when facing the pins down (when connected to a breadboard)
|
42 | 42 |
|
43 | 43 | #if defined(SOC_SDMMC_USE_GPIO_MATRIX) && not defined(BOARD_HAS_SDMMC)
|
44 |
| - int d1 = 21; // SD pin 8 - add 10k Pullup to 3.3V if using 4-bit mode (use_1_bit_mode = false) |
45 |
| - int d0 = 47; // SD pin 7 - add 10k Pullup |
| 44 | + int d1 = 21; // SD pin 8 - Add a 10k Ohm pull-up resistor to 3.3V if using 4-bit mode (use_1_bit_mode = false) |
| 45 | + int d0 = 47; // SD pin 7 - Add a 10k Ohm pull-up resistor |
46 | 46 | // GND pin - SD pin 6
|
47 |
| - int clk = 39; // SD pin 5 - add 10k Pullup |
| 47 | + int clk = 39; // SD pin 5 - Add a 10k Ohm pull-up resistor |
48 | 48 | // 3.3V pin - SD pin 4
|
49 | 49 | // GND pin - SD pin 3
|
50 |
| - int cmd = 40; // SD pin 2 - add 10k Pullup |
51 |
| - int d3 = 41; // SD pin 1 - add 10k Pullup to card's pin even when using 1-bit mode |
52 |
| - int d2 = 42; // SD pin 9 - add 10k Pullup to 3.3V if using 4-bit mode (use_1_bit_mode = false) |
| 50 | + int cmd = 40; // SD pin 2 - Add a 10k Ohm pull-up resistor |
| 51 | + int d3 = 41; // SD pin 1 - Add a 10k Ohm pull-up resistor to card's pin even when using 1-bit mode |
| 52 | + int d2 = 42; // SD pin 9 - Add a 10k Ohm pull-up resistor to 3.3V if using 4-bit mode (use_1_bit_mode = false) |
53 | 53 | #endif
|
54 | 54 |
|
55 | 55 | bool use_1_bit_mode = false; // Change the value to `true` to use 1-bit mode instead of the 4-bit mode
|
|
0 commit comments