Open kd8bxp opened 5 years ago
Just checked the SD card - and it looks like the pins for the board I have are also different.
If you have this board, this works with the example sketch. line 12 should read:
if (!SD.begin(5,23,19,18)) { //T1:13,15,2,14 T2: 23,5,19,18 M5:4,23,19,18 uint8_t csPin, int8_t mosi, int8_t miso, int8_t sck
From this line it looks like there are two different versions of this board a T1 and a T2 (?) Can someone verify, maybe I have a T2 board?
Also, I can't figure out if the red led is connected to a pin, or if this board has a on board led (?)
I can confirm that my device works only with configuration mentioned by @kd8bxp.
Actually this is my first time having working SD card with ESP32!
BTW, onboard led on this board is on pin 22 and it is one of four blues. Red seems to be just a power indicator.
Just an FIY - someone can verify. I honestly thought I had bought my boards from LilyGo on Aliexpress, turns out I didn't. and it looks like the pin numbers are different - but luckily they are printed on the board. So line 63 of the example may need to be changed from:
to
I've not tried the SD card yet, but looks to me like the pins are also different for it. Doesn't seem to make a difference which board I choose from the board menu.
Can someone else verify this - or did I just buy a clone board/fake board