Assoc. Prof. Wiroon Sriborrirux, Founder of Advance Innovation Center (AIC) and Bangsaen Design House (BDH), Electrical Engineering Department, Faculty of Engineering, Burapha University
Here I take stm32f469-st-disco BSP as an example. This development board has two touch chips in different batches, namely FT6336 and FT6206. Here we take FT6336 as an example. First we should check the chip manual:
Why do we ask you to read the data sheet first? Obviously, the software package does not support the FT6336 touch chip. When we look up the data sheet, we know that they belong to the FT6x36 series of touch chips. Then we can know that the software package contains the FT6236 touch driver. Therefore, we can use this touch driver for porting.
voidlv_port_indev_init(void){staticlv_indev_drv_t indev_drv;lv_indev_drv_init(&indev_drv); /*Basic initialization*/indev_drv.type = LV_INDEV_TYPE_POINTER;indev_drv.read_cb = input_read; /*Register the driver in LVGL and save the created input device object*/ touch_indev =lv_indev_drv_register(&indev_drv);}copymistakeCopy Success