fit touch postion for lvgl

This commit is contained in:
wuzheng
2022-11-21 16:46:46 +08:00
parent ebc61431bd
commit 987fd6c798
5 changed files with 11 additions and 9 deletions
@@ -268,7 +268,7 @@ static bool touchpad_is_pressed(void)
ret = PrivRead(touch_fd, &touch_data, 1);
if(ret && touch_data.x >= 0 && touch_data.x < MY_INDEV_X && touch_data.y >= 0 && touch_data.y < MY_INDEV_Y)
{
// printf("touch x %d touch y %d\n",touch_data.x,touch_data.y);
printf("touch x %d touch y %d\n",touch_data.x,touch_data.y);
return true;
}