Help with example code to use microSD card on TTGO T8 ESP32-S2

Hello everyone,

I'm working with the TTGO T8 ESP32-S2 board and I would like to use the built-in microSD card to store and read files. I'm using the Arduino IDE and I've tried several example codes, but I haven't been able to make them work correctly.

I've tried using the "SD" library along with the "SPI" library to configure the SPI bus and the chip select pin. I have also verified the physical connections of the microSD card.

However, every time I run the code, I get errors when initializing the microSD card or when trying to open or create files on the card.

I would greatly appreciate it if someone could provide me with a functional example code that I can use as a starting point to work with the microSD card on the TTGO T8 ESP32-S2 board. I would also appreciate any additional advice or guidelines to ensure that the configuration and code are correct.

Thank you very much for your help!

Is the switch on? Please link to the card you bought as I don't know if this is even what you're using for sure. IDK, might just be a power switch.
image

1 Like

Yes, that was the problem, and I also had the pins with the wrong numbers. thank you very much for your help!

You're welcome. Glad it wasn't complicated.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.