Xinyuan-LilyGO / T-Display-S3-Long

42 stars 14 forks source link

touch: Failed to get two point touch detection #20

Closed mcuw closed 6 months ago

mcuw commented 6 months ago

Hi,

it looks like the two point touch detection is not working ...

uint16_t pointX = AXS_GET_POINT_X(buff, 1);
uint16_t pointY = AXS_GET_POINT_Y(buff, 1);

Both values are always zero even when the point num is 2:

uint8_t num = AXS_GET_POINT_NUM(buff)

num == 2

lewisxhe commented 6 months ago

I need to consult with the supplier, I will update if there is any new progress

lewisxhe commented 6 months ago

Because the read data size is single point data, just change it to read two point data size.

mcuw commented 6 months ago

Thanks a lot for your quick fix. Good catch and works fine.