Experiencing conflicts between touch and Wifi on ESP32 #2631
-
I am experiencing something that looks like a conflict between the touch interface and the wifi library. I am using a Lolin32 ESP32 board and a 2.4 TFT SPI 240 x 320 screen with touch. (Red board - bought on Ali Express). My signals are connected as follows: Display ESP32 GPIO Display and touch work perfectly, but as soon as I turn on Wifi, the touch interface stops working. WiFi.mode(WIFI_STA); When not working, the touch interface always returns the same values: x: 8191 y: 8191 z: 0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Answered my own question: The problem was the use of GPIO2 for T_DO and MISO. It seems to be used when the Wifi Interface is turned on for some reason. Since the Display is not really using MISO, it was still working. However, since the touch interface uses the T_DO signal, it was malfunctioning. Connecting to another GPIO (GPIO23 in this case) solved the problem. |
Beta Was this translation helpful? Give feedback.
-
Me ha funcionado |
Beta Was this translation helpful? Give feedback.
Answered my own question: The problem was the use of GPIO2 for T_DO and MISO. It seems to be used when the Wifi Interface is turned on for some reason. Since the Display is not really using MISO, it was still working. However, since the touch interface uses the T_DO signal, it was malfunctioning. Connecting to another GPIO (GPIO23 in this case) solved the problem.