thelastoutpostworkshop / animated_gif_sdcard_spiffs

Animated GIF stored in SD Card and played from SPIFFS on a Round Display (GC9A01) with the ESP32
https://youtu.be/mqSe_uMpxIs
MIT License
21 stars 1 forks source link

SD card initialization failed! #5

Open mateus23-gacor opened 1 week ago

mateus23-gacor commented 1 week ago

hello owner, why my SD card initialization failed!, i make sure the pin i use is correct

thelastoutpostworkshop commented 1 week ago

try by initializing the SD card using the TFT instance :

Serial.println("Initialising TFT_eSPI");
tft.init();
tft.fillScreen(TFT_BLACK);

    tft.setRotation(1);
    Serial.println("End of Initialising TFT_eSPI");
    if (!SD.begin(SD_CS_PIN, tft.getSPIinstance()))
    {
        Serial.println("SD card initialization failed!");
        return;
    }