Xinyuan-LilyGO / LilyGo-T5-Epaper-Series

183 stars 60 forks source link

SD card reader not working [T5_V2.3.1_213] (20-8-26) #33

Open mrWheel opened 2 years ago

mrWheel commented 2 years ago

Hi,

This is my setup:

#define SDCARD_MISO             (2)
#define SDCARD_CS               (13)
#define SDCARD_SCLK             (14)
#define SDCARD_MOSI             (15)

#define _HAS_SDCARD_

Tried it with and without: SPIClass SDSPI(HSPI);

Added this line of code:

Serial.printf("SD: %dG\r\n", SD.cardSize());

If I insert a 2GB microSD card setupSDCard() returns false and SD.cardSize() returns zero.

I checked the defines with the silkscreen on my board and that all looks good/normal. The SD card works OK on other devices.

Do I have a faulty board?