added the implementation of CST816 touch sensor
This commit is contained in:
parent
26fe6e7703
commit
ed2860239f
7 changed files with 247 additions and 1 deletions
|
@ -22,6 +22,8 @@ void touch_driver_init(void)
|
|||
ra8875_touch_init();
|
||||
#elif defined (CONFIG_LV_TOUCH_CONTROLLER_GT911)
|
||||
gt911_init(GT911_I2C_SLAVE_ADDR);
|
||||
#elif defined (CONFIG_LV_TOUCH_CONTROLLER_CST816)
|
||||
cst816_init(CST816_I2C_SLAVE_ADDR);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -47,6 +49,8 @@ bool touch_driver_read(lv_indev_drv_t *drv, lv_indev_data_t *data)
|
|||
res = ra8875_touch_read(drv, data);
|
||||
#elif defined (CONFIG_LV_TOUCH_CONTROLLER_GT911)
|
||||
res = gt911_read(drv, data);
|
||||
#elif defined (CONFIG_LV_TOUCH_CONTROLLER_CST816)
|
||||
res = cst816_read(drv, data);
|
||||
#endif
|
||||
|
||||
#if LVGL_VERSION_MAJOR >= 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue