-
Notifications
You must be signed in to change notification settings - Fork 7.7k
SD_MMC update #8298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SD_MMC update #8298
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,21 +1,59 @@ | ||||||||||||||
| /* | ||||||||||||||
| * Connect the SD card to the following pins: | ||||||||||||||
| * pin 1 - D2 | Micro SD card | | ||||||||||||||
| * pin 2 - D3 | / | ||||||||||||||
| * pin 3 - CMD | |__ | ||||||||||||||
| * pin 4 - VDD (3.3V) | | | ||||||||||||||
| * pin 5 - CLK | 8 7 6 5 4 3 2 1 / | ||||||||||||||
| * pin 6 - VSS (GND) | ▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄ / | ||||||||||||||
| * pin 7 - D0 | ▀ ▀ █ ▀ █ ▀ ▀ ▀ | | ||||||||||||||
| * pin 8 - D1 |_________________| | ||||||||||||||
| * ║ ║ ║ ║ ║ ║ ║ ║ | ||||||||||||||
| * ╔═══════╝ ║ ║ ║ ║ ║ ║ ╚═════════╗ | ||||||||||||||
| * ║ ║ ║ ║ ║ ║ ╚══════╗ ║ | ||||||||||||||
| * ║ ╔═════╝ ║ ║ ║ ╚═════╗ ║ ║ | ||||||||||||||
| * Connections for ║ ║ ╔═══╩═║═║═══╗ ║ ║ ║ | ||||||||||||||
| * full-sized ║ ║ ║ ╔═╝ ║ ║ ║ ║ ║ | ||||||||||||||
| * SD card ║ ║ ║ ║ ║ ║ ║ ║ ║ | ||||||||||||||
| * ESP32-S3 DevKit | 21 47 GND 39 3V3 GND 40 41 42 | | ||||||||||||||
| * ESP32-S3-USB-OTG | 38 37 GND 36 3V3 GND 35 34 33 | | ||||||||||||||
| * ESP32 | 4 2 GND 14 3V3 GND 15 13 12 | | ||||||||||||||
| * Pin name | D1 D0 VSS CLK VDD VSS CMD D3 D2 | | ||||||||||||||
| * SD pin number | 8 7 6 5 4 3 2 1 9 / | ||||||||||||||
| * | █/ | ||||||||||||||
| * |__▍___▊___█___█___█___█___█___█___/ | ||||||||||||||
| * WARNING: ALL data pins must be pulled up to 3.3V with external 10k Ohm resistor! | ||||||||||||||
| * Note to ESP32 pin 2 (D0) : add 1K pull up after flashing | ||||||||||||||
PilnyTomas marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||
| * | ||||||||||||||
| * SD Card | ESP32 | ||||||||||||||
| * D2 12 | ||||||||||||||
| * D3 13 | ||||||||||||||
| * CMD 15 | ||||||||||||||
| * VSS GND | ||||||||||||||
| * VDD 3.3V | ||||||||||||||
| * CLK 14 | ||||||||||||||
| * VSS GND | ||||||||||||||
| * D0 2 (add 1K pull up after flashing) | ||||||||||||||
| * D1 4 | ||||||||||||||
| * For more info see file README.md in this library or on URL: | ||||||||||||||
| * https://github.com/espressif/arduino-esp32/tree/master/libraries/SD_MMC | ||||||||||||||
| */ | ||||||||||||||
|
|
||||||||||||||
| #include "FS.h" | ||||||||||||||
| #include "SD_MMC.h" | ||||||||||||||
|
|
||||||||||||||
| // Default pins for ESP-S3 | ||||||||||||||
| // Warning: ESP32-S3-WROOM-2 is using most of the default SD_MMC GPIOs (33-37) to interface with on-board OPI flash. | ||||||||||||||
| // If the SD_MMC is initialized with default pins it will result in rebooting loop - please | ||||||||||||||
| // reassign the pins elsewhere using the mentioned command `setPins`. | ||||||||||||||
|
||||||||||||||
| // Warning: ESP32-S3-WROOM-2 is using most of the default SD_MMC GPIOs (33-37) to interface with on-board OPI flash. | |
| // If the SD_MMC is initialized with default pins it will result in rebooting loop - please | |
| // reassign the pins elsewhere using the mentioned command `setPins`. | |
| // Warning: ESP32-S3-WROOM-2 is using most of the default SD_MMC GPIOs (33-37) to interface with the on-board OPI flash. | |
| // If the SD_MMC is initialized with the default pins it will result in a reboot loop. Please | |
| // reassign the pins elsewhere using the mentioned command `setPins`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please explain the white space changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning block was not aligned like other sketches I saw (in some sort of block). Although I just saw some that did just like you did. Feel free to keep it as it was.
Uh oh!
There was an error while loading. Please reload this page.