apps/examples/lvgldemo: Update the lvgl init procedure
@@ -148,6 +148,9 @@ int main(int argc, FAR char *argv[])
lv_disp_drv_t disp_drv;
pthread_t tick_thread;
+ lv_disp_buf_t disp_buf;
+ static lv_color_t buf[CONFIG_LV_VDB_SIZE];
+
#ifdef NEED_BOARDINIT
/* Perform board-specific driver initialization */
@@ -170,8 +173,10 @@ int main(int argc, FAR char *argv[])
/* Basic LittlevGL display driver initialization */
+ lv_disp_buf_init(&disp_buf, buf, NULL, LV_HOR_RES_MAX * 10);
lv_disp_drv_init(&disp_drv);
- disp_drv.disp_flush = fbdev_flush;
+ disp_drv.flush_cb = fbdev_flush;
+ disp_drv.buffer = &disp_buf;
lv_disp_drv_register(&disp_drv);
/* Tick interface initialization */
@@ -189,7 +194,7 @@ int main(int argc, FAR char *argv[])
* mouse position and state.
*/
- indev_drv.read = tp_read;
+ indev_drv.read_cb = tp_read;
lv_indev_drv_register(&indev_drv);
/* Demo initialization */
