lovyan03 / LovyanGFX

SPI LCD graphics library for ESP32 (ESP-IDF/ArduinoESP32) / ESP8266 (ArduinoESP8266) / SAMD51(Seeed ArduinoSAMD51)
Other
1.19k stars 210 forks source link

ESP32-2432S028 sdcard not available #634

Open philippedc opened 2 weeks ago

philippedc commented 2 weeks ago

Hi, I like a lot to use this all in one ESP32 and I like to upgrade projects with animations, so with "sprites". But as I do not understand how to set them, so I'm required to use the original library for those projects I pick up on internet.

For instance the "RollingClock" [https://github.com/witnessmenow/ESP32-Cheap-Yellow-Display/tree/main/Examples/Projects/RollingClockWithWifiManager] I added web radio features, and SDCARD to read audio files. It works only if I declare the SPI after the TFT and the Touch Screen.

But for instance with the "retro cassette web radio" https://macsbug.wordpress.com/2023/09/28/retro-style-webradio I can use the SDCARD only in the setup BEFORE any TFT declaration.

I wonder why there is such a difference in working with these 2 libraries, as the Touch Screen and the SDcard have their own SPI pins, default VSPI pins for SDCard and HSPI for the XPT2046_Touchscreen.h library used for the Touch Screen with TFT_eSPI.h

Is there any solution ? Thanks