Unable to access SD card - Arduino IDE

NickVerlooy93
Posts: 7
Joined: Wed Jul 10, 2019 7:05 am

Unable to access SD card - Arduino IDE

Postby NickVerlooy93 » Fri Jul 19, 2019 9:49 am

Hi

I'm trying to implement the ESP ADF with the Arduino IDE to play music stored on the SD card.
I have a ESP Lyrat V4.3 board.

I tried the following code:

Code: Select all

#include "FS.h"
#include "SD.h"
#include "SPI.h"

int CSpin = 13;

void setup() {
  Serial.begin(115200);

  if (!SD.begin(CSpin)) {
  Serial.println(": Card Mount Failed");
  }
  else {
    Serial.println("YAY");
  }
}

void loop() {
}
I keep getting the 'Card mount failed', even with chancing the CSpin.
Is there something else I should do or change to make this work?

Who is online

Users browsing this forum: No registered users and 92 guests