Xinyuan-LilyGO / T-Deck

191 stars 43 forks source link

Unable to use the SD Card and display at the same time #14

Closed technoblogy closed 9 months ago

technoblogy commented 9 months ago

I have a T-Deck working nicely with the display, using the GFX Library for Arduino by Moon On Our Nation.

I have also got the T-Deck working with the SD Card interface, using the SD library in the ESP32 core, by adding the definition:

#define SDCARD_SS_PIN 39

and changing the SPI definitions in the file:

/Users/david/Library/Arduino15/packages/esp32/hardware/esp32/2.0.12/variants/esp32s3/pins_arduino.h

to:

static const uint8_t SS    = 39;
static const uint8_t MOSI  = 41;
static const uint8_t MISO  = 38;
static const uint8_t SCK   = 40;

However, when I use the SD Card the display stops working.

Can anyone provide sample code showing how to use the display and SD Card interface at the same time?

technoblogy commented 9 months ago

With help from @nanomonkey I have now solved this problem.

Fixed project incorporating this code is here: https://github.com/technoblogy/ulisp-tdeck