ILI9341 + NodeMcu32 -> 8Bit-Parallel (works) + Touch (doesn't work correct) #2389
-
I got the display working and it displays the color test correctly, but when i want to use the adafruit_touchscreen library it outputs negative pressures and negative values overall. Tried many stuff around, even tried to debug it and so, but i do know, that it have something to do with my settings. The display: https://www.reichelt.de/arduino-shield-display-2-4-touch-320-x-240-pixel-ili9341-ard-shd-2-4td-p282495.html My wiring: I already debugged a bit and took the getPoint function apart and i found some Error: When i print the samples array, when i touch nothing, it outputs for samples[0] around 3000 and for 1&2 4095. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The touch screen interface is anlaogue (no XPT2046) and the touch pins share with the digital pins to the TFT controller, so this complicates matters. There is an adapted Adafruit library that handles this, note that this assumes the ESP32 is wired with additional connections so some TFT shield pins link to multiple ESP32 pins. See the end of the ReadMe section here for a link to the adapted library and the connections made. You will need to figure out how the UNO board modifications translate to your setup. |
Beta Was this translation helpful? Give feedback.
The touch screen interface is anlaogue (no XPT2046) and the touch pins share with the digital pins to the TFT controller, so this complicates matters.
There is an adapted Adafruit library that handles this, note that this assumes the ESP32 is wired with additional connections so some TFT shield pins link to multiple ESP32 pins.
See the end of the ReadMe section here for a link to the adapted library and the connections made. You will need to figure out how the UNO board modifications translate to your setup.