touch driver: Add LVGL v8 compatibility

This commit is contained in:
C47D 2021-06-13 15:06:22 -05:00
parent f726311525
commit 0d32432f4c
4 changed files with 275 additions and 0 deletions

View file

@ -44,7 +44,12 @@ extern "C" {
* GLOBAL PROTOTYPES
**********************/
void touch_driver_init(void);
#if LVGL_VERSION_MAJOR >= 8
void touch_driver_read(lv_indev_drv_t *drv, lv_indev_data_t *data);
#else
bool touch_driver_read(lv_indev_drv_t *drv, lv_indev_data_t *data);
#endif
#ifdef __cplusplus
} /* extern "C" */