gustavonihei commented on a change in pull request #591: URL: https://github.com/apache/incubator-nuttx-apps/pull/591#discussion_r603275613
########## File path: examples/lvgldemo/lvgldemo.c ########## @@ -153,16 +172,29 @@ int main(int argc, FAR char *argv[]) lv_init(); - /* Display interface initialization */ - - fbdev_init(); - /* Basic LittlevGL display driver initialization */ lv_disp_buf_init(&disp_buf, buf, NULL, DISPLAY_BUFFER_SIZE); lv_disp_drv_init(&disp_drv); - disp_drv.flush_cb = fbdev_flush; disp_drv.buffer = &disp_buf; + disp_drv.monitor_cb = monitor_cb; + + /* Display interface initialization */ + + if (fbdev_init(&disp_drv) != EXIT_SUCCESS) + { + /* Failed to use framebuffer falling back to lcd driver */ + + if (lcddev_init(&disp_drv) != EXIT_SUCCESS) + { + /* No possible drivers left, fail */ + + return EXIT_FAILURE; + } + } + + /* Basic LittlevGL display driver initialization */ Review comment: ```suggestion ``` Repeated documentation, may be removed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org