Cheap yellow display Touch and SD

I'm using a CYD. For graphics LVGL and I'm trying to add SD Card support. Everything works fine until I add SD Card to the code. After having added SD Card access touch stops working

#define XPT2046_IRQ 36
#define XPT2046_MOSI 32
#define XPT2046_MISO 39
#define XPT2046_CLK 25
#define XPT2046_CS 33
#define SD_CS 5
SPIClass mySpi = SPIClass(VSPI);
XPT2046_Touchscreen touchscreen(XPT2046_CS, XPT2046_IRQ);
void setup(){
  mySpi.begin(XPT2046_CLK, XPT2046_MISO, XPT2046_MOSI, XPT2046_CS);
  touchscreen.begin(mySpi);
//If uncommenting this touch stops working
  /*    if(!SD.begin(SD_CS)) {
        Serial.println("Card Mount Failed");
        return;
    }
    Serial.println("SD card initialized.");*/

Is this a real Arduino branded ESP32 or is it some other ESP32?

The CYD (Cheap Yellow Display) is not a Nano ESP32 so the topic has been moved to a more generic category of the forum

This could e the same as mine... no solution yet though...

Take a look at GitHub - witnessmenow/ESP32-Cheap-Yellow-Display: Building a community around a cheap ESP32 Display with a touch screen

There is a link on that page to an active Discord channel about the CYD BLough

I'm not the keenest on Discord, or any social media any more after the US censorship and cancellation at the last elections. Discord, not for me, ruined many a good forum...

Anyway... All those examples keep each system test separate, so, combining the touch and sd examples result in some kind of conflict...

Thankyou

I am not keen on Discord either as a forum, but in this case it could be useful. You could ask your exact question there and expect replies from experienced users of the CYD

Nicely played... Sorry, I posted after walking out of an argument...

I'll have another play and try and figure out the conflicting pin, I've identified that it only happens after adding XPT2046_Touchscreen, but yes I'll have another look, I liked the title about community, and already ordered a small batch of CYD's.

Thankyou, have a good day!

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