Feed tft_espi with custom method for the touch controller #2339
Replies: 2 comments
-
The calibration functions in TFT_eSPI are specific to the included XPT2046 touch controller code so will not work with other touch libraries. Typically the map() function is used inside the sketch to map FT6206 touch coordinates to the screen. |
Beta Was this translation helpful? Give feedback.
-
buttonAction_UpDownCounter.zip I've attached an example project I did to test long press events with buttons. I think case 2 in this sketch (in
Since writing this sketch a lot has changed in my code but hopefully this example helps you integrate the CTP with TFT-eSPI |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys, so I managed to create a custom PCB for a screen I found online (https://es.aliexpress.com/item/4001248271603.html?spm=a2g0o.order_list.order_list_main.277.5438194dlGiwCK&gatewayAdapt=glo2esp), I got it working as an ILI9488, looks good and works great, however the touch controller is something I would like to add to TFT_eSPI, I have tested with the Adafruit library for FT6206 and also works pretty great, so I want to know how could I feed tft_espi with a custom method to pass the "touched points" on screen. my main app is using LVGL so I can inject that into LVGL but there is this "welcome screen" in tft_espi the "touch calibration" that I would like to feed with this new custom method. Is it possible?
Greetings!
Beta Was this translation helpful? Give feedback.
All reactions