Dear Sir ,
i have ESP32 S3 connected with RGB panel 480x480 with touch FT5x06
LVGL v8.3.5
screen work find but touch not work. when i touch on screen i got log data from touch panel but screen nothing change.
pls check my code
thank
/*Initialize the (dummy) input device driver*/
static lv_indev_drv_t indev_drv;
lv_indev_drv_init( &indev_drv );
indev_drv.type = LV_INDEV_TYPE_POINTER;
indev_drv.disp = disp;
indev_drv.read_cb = my_touchpad_read;
lv_indev_drv_register( &indev_drv );
void my_touchpad_read( lv_indev_drv_t * indev_driver, lv_indev_data_t * data )
{
// touch_point_t touch;
uint_fast8_t touched = _touch_instance.getTouchRaw(&touch,1);
if (touched)
{
/*Set the coordinates*/
data->point.x = (lv_coord_t)touch.x;
data->point.y = (lv_coord_t)touch.y;
data->state = LV_INDEV_STATE_PR;
Serial.printf("X: %d Y: %d\n",data->point.x,data->point.y);
}
{
data->state = LV_INDEV_STATE_REL;
}
}