arduino-esp32/libraries/SD
Me No Dev 1cf1c8eb79
Fix several SD card issues (#4876)
- File might not eval to false if opened with write/append and SD is gone
- Allow card to be formatted if FAT partition was not found
- Mark card as gone in certain situations
- Fix several logic errors in low level SD API
2021-03-01 23:52:57 +02:00
..
examples Unify time modification on SD and SPIFFS (#738) 2018-03-04 21:20:34 +01:00
src Fix several SD card issues (#4876) 2021-03-01 23:52:57 +02:00
library.properties Add FS, SD and SD_MMC (#256) 2017-03-10 15:25:38 +01:00
README.md SD library explanation (#262) 2017-03-14 14:53:59 +01:00

SD library

This library provides the integration of ESP32 and SD (Secure Digital) cards without additional modules.

Sample wiring diagram:

SD card pins

For others SD formats:

Other SD card formats

Image source: Wikipedia

- Warning: Some ESP32 modules have different pinouts!

FAQ:

Do I need any additional modules, like Arduino SD module?

No, just wire your SD card directly to ESP32.

What is the difference between SD and SD_MMC libraries?

SD runs on SPI, and SD_MMC uses the SDMMC hardware bus on the ESP32.

Can I change the CS pin?

Yes, just use: SD.begin(CSpin)