Touch screen stop working with SD.h library #3287
Unanswered
tonxy1999
asked this question in
Q&A - Touch
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm using ILI9341 display and ESP32 to build some simple Weather station project. Board is Wemos D1 R32 and display is some from Aliexpress.
I want to store data to microSD card to have some analytics, but the problem comes with SD.h library. If I initialize SD library firstly, then tft library, nothing shows on the screen. If I do it in the opposite way, first do initialization of tft and then SD, display is working good, but touchscreen is not working. In both times I can access to data on microSD card.
I set up tft_eSPI pins in User_data file.
SD card is connected to the VSPI
MOSI 23
MISO 19
CLK 18
CS 5
and the display is connected to the HSPI
MOSI 13
MISO 12
CLK 14
CS 15
TOUCH_CS 27
here is my code:
I also tried to add this but it didn't help
Has anyone idea what is going wrong? I found something for Arduino, but I don't know is the same problem here.
Beta Was this translation helpful? Give feedback.
All reactions