From 2f5efed220a16835b749c0c1599080d97f835dc8 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Fri, 10 Mar 2017 17:35:39 +0200 Subject: [PATCH] Add pin mapping for SD and SD_MMC examples --- libraries/SD/examples/SD_Test/SD_Test.ino | 14 ++++++++++++++ .../SD_MMC/examples/SDMMC_Test/SDMMC_Test.ino | 15 +++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/libraries/SD/examples/SD_Test/SD_Test.ino b/libraries/SD/examples/SD_Test/SD_Test.ino index b232ddd3..d35b03f5 100644 --- a/libraries/SD/examples/SD_Test/SD_Test.ino +++ b/libraries/SD/examples/SD_Test/SD_Test.ino @@ -1,3 +1,17 @@ +/* + * Connect the SD card to the following pins: + * + * SD Card | ESP32 + * D2 - + * D3 SS + * CMD MOSI + * VSS GND + * VDD 3.3V + * CLK SCK + * VSS GND + * D0 MISO + * D1 - + */ #include "FS.h" #include "SD.h" #include "SPI.h" diff --git a/libraries/SD_MMC/examples/SDMMC_Test/SDMMC_Test.ino b/libraries/SD_MMC/examples/SDMMC_Test/SDMMC_Test.ino index 5d1388ee..add5c01a 100644 --- a/libraries/SD_MMC/examples/SDMMC_Test/SDMMC_Test.ino +++ b/libraries/SD_MMC/examples/SDMMC_Test/SDMMC_Test.ino @@ -1,3 +1,18 @@ +/* + * Connect the SD card to the following pins: + * + * 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 + */ + #include "FS.h" #include "SD_MMC.h"