Dear community,
I just have compiled the " lv_port_stm32f769_disco " - it runs fine!
However, since I connect a coursor object to the driver, every “click event” happens twice (two times). Please help!
(ex. using lv_ex_get_started_1 )
STM32F769NI (DISC)
To use a pointing device with a cursor connected ?
Code to reproduce
void touchpad_init(void)
{
BSP_TS_Init(TFT_HOR_RES, TFT_VER_RES);
lv_indev_drv_t indev_drv;
lv_indev_drv_init(&indev_drv);
indev_drv.read_cb = touchpad_read_cb;
indev_drv.type = LV_INDEV_TYPE_POINTER;
lv_indev_drv_register(&indev_drv);
lv_indev_t * mouse_indev = lv_indev_drv_register(&indev_drv);
lv_obj_t * cursor_obj = lv_label_create(lv_scr_act(), NULL); //create object
lv_label_set_text(cursor_obj, “x”);
lv_indev_set_cursor(mouse_indev, cursor_obj); // connect the object to the driver
}