LilyGO / TTGO-LORA32

ESP32-TTGO-T3
326 stars 100 forks source link

How do i read/write from the SD card? #4

Closed choopk closed 6 years ago

choopk commented 6 years ago

Finally got it to work thanks to jamesGkent through the following steps:


what about using the normal SD lib, but set up the SPI before passing it in. so this example

with the setup changed from:

void setup(){ Serial.begin(115200); if(!SD.begin()){ Serial.println("Card Mount Failed"); return; }

to:

void setup(){ Serial.begin(115200); SPI.begin(14, 2, 15); if(!SD.begin(13)){ Serial.println("Card Mount Failed"); return; }