Unverified Commit e850afb1 authored by Martin Hübner's avatar Martin Hübner Committed by GitHub

SDMMC: Fix example code (#10035)

The setPins() function obviously comes from the SD_MMC lib. Not prepending
that lib, this code won't compile.
Signed-off-by: default avatarMartin Hübner <martin.hubner@web.de>
Co-authored-by: default avatarJan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
parent 2db73063
...@@ -214,8 +214,8 @@ void setup() { ...@@ -214,8 +214,8 @@ void setup() {
// If you want to change the pin assignment on ESP32-S3 uncomment this block and the appropriate // If you want to change the pin assignment on ESP32-S3 uncomment this block and the appropriate
// line depending if you want to use 1-bit or 4-bit line. // line depending if you want to use 1-bit or 4-bit line.
// Please note that ESP32 does not allow pin change and will always fail. // Please note that ESP32 does not allow pin change and will always fail.
//if(! setPins(clk, cmd, d0)){ //if(! SD_MMC.setPins(clk, cmd, d0)){
//if(! setPins(clk, cmd, d0, d1, d2, d3)){ //if(! SD_MMC.setPins(clk, cmd, d0, d1, d2, d3)){
Serial.println("Pin change failed!"); Serial.println("Pin change failed!");
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment