TFT_eSPI icon indicating copy to clipboard operation
TFT_eSPI copied to clipboard

Esp32 with ILI9488 touch not working

Open luke2023 opened this issue 5 months ago • 7 comments

hello, i hope you can help.I have bought 5 screen, one runs touch correctly (normal z raw is around 90) and the others all have 1890 normal z raw value. and they don't work as well(I guess the program thinks I am pressing them but it is the untouched)

luke2023 avatar Feb 05 '24 03:02 luke2023

image

this is my circuit diagram , and i use touch_calibrate example

luke2023 avatar Feb 05 '24 03:02 luke2023

image

This is the one with same circuit and calibration code(may be only this screen is OK?

luke2023 avatar Feb 05 '24 03:02 luke2023

This is the raw and calibration on strange LCD

https://youtu.be/7PVe3VPsW-4?si=7eZyBYNCKUGGZN29

luke2023 avatar Feb 05 '24 03:02 luke2023

Try using the optional touch threshold parameter, by default it is 600, see here: https://github.com/Bodmer/TFT_eSPI/blob/master/Extensions/Touch.h#L11-L18

Maybe a threshold of 2000 would work.

Bodmer avatar Feb 06 '24 01:02 Bodmer

@Bodmer thank you for replying,so I should simply modify the 600 to 2000?

luke2023 avatar Feb 06 '24 10:02 luke2023

Just add the extra parameter to get touch to define the threshold, e.g.: tft.getTouch(&x, &y, 2000);

Bodmer avatar Feb 08 '24 23:02 Bodmer

@Bodmer thabk you for the suggestion

luke2023 avatar Feb 09 '24 14:02 luke2023