Touch values #336
Replies: 4 comments 7 replies
-
If you are using Capacitive Touch screen, you can leave it -1. Or you can use TouchCalibration.ino example to check the correct value. |
Beta Was this translation helpful? Give feedback.
-
based on the schematics it is using XPT2046, but it keeps calling the touch_touched() function. |
Beta Was this translation helpful? Give feedback.
-
in the touch.h file, I uncomment the define section for XPT2046 as below and in TouchCalibration.ino in the beginning of the loop function as below. if (touch_touched()) { |
Beta Was this translation helpful? Give feedback.
-
If the connection ok, the calibration output should be something like this:
|
Beta Was this translation helpful? Give feedback.
-
Hello,
in the touch.h file, what is the value for the following variables? for the ESP32-8048S070C board I mean.
Thanks,
// Please fill below values from Arduino_GFX Example - TouchCalibration
bool touch_swap_xy = false;
int16_t touch_map_x1 = -1;
int16_t touch_map_x2 = -1;
int16_t touch_map_y1 = -1;
int16_t touch_map_y2 = -1;
Beta Was this translation helpful? Give feedback.
All reactions