Bodmer / TFT_eSPI

Arduino and PlatformIO IDE compatible TFT library optimised for the Raspberry Pi Pico (RP2040), STM32, ESP8266 and ESP32 that supports different driver chips
Other
3.41k stars 1k forks source link

ILI9341 with ESP32. Error in touch. #3249

Open DamianosMk opened 1 month ago

DamianosMk commented 1 month ago

User_Setup.zip I am using the esp32 with the ili9341 display. I tried to upload the Test_Touch_Controller example. I try to upload it and it says Compilation error: 'class TFT_eSPI' has no member named 'getTouchRaw' . I am using the ArduinoIDE, the latest library version and SPI. I have wired the display according to the user_setup.h

AgainPsychoX commented 1 month ago

You need to define and wire TOUCH_CS pin for touch chip select. The library assumes MOSI/MISO/CLK are shared with the touch, so make sure they are connected as such, as many displays have separate SPIs for display and touch - in such case you want to join them yourself.