mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 05:06:44 +00:00
Set higher touch treshold for XPT2046
This commit is contained in:
parent
72b36f54b9
commit
0523c37598
@ -75,7 +75,7 @@ static inline bool drv_touchpad_getXY(int16_t* touchX, int16_t* touchY)
|
|||||||
int16_t normal_x;
|
int16_t normal_x;
|
||||||
int16_t normal_y;
|
int16_t normal_y;
|
||||||
#if TOUCH_DRIVER == 2046 // XPT2046 Resistive touch panel driver
|
#if TOUCH_DRIVER == 2046 // XPT2046 Resistive touch panel driver
|
||||||
touched = haspTft.tft.getTouch((uint16_t*)&normal_x, (uint16_t*)&normal_y, 20);
|
touched = haspTft.tft.getTouch((uint16_t*)&normal_x, (uint16_t*)&normal_y, 300);
|
||||||
|
|
||||||
#elif TOUCH_DRIVER == 0x2046B
|
#elif TOUCH_DRIVER == 0x2046B
|
||||||
touched = XPT2046_getXY(&normal_x, &normal_y, true);
|
touched = XPT2046_getXY(&normal_x, &normal_y, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user