Touch Screen Driver
Last updated
Was this helpful?
Last updated
Was this helpful?
This section describes how to use the Touch framework of RT-Thread to connect the touch screen driver to the LVGL input device framework.
At present, RT-Thread's Touch framework and touch driver software package are already very complete, covering a variety of commonly used touch chips:
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.
Select the specific I2C bus according to the schematic diagram (according to the communication method of your own BSP)
Enable the touch driver framework of the software package
Select a specific touch driver software package
Add in LVGL configuration itemselect BSP_USING_TOUCH_FT6X36
Here is how to use the software package:
Here I take 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:
For details, refer to:
For this, please refer to the usage of Touch framework in