boards/esp32-wrover-kit: Add support for Framebuffer character driver

This commit is contained in:
Gustavo Henrique Nihei
2021-03-29 19:05:05 -03:00
committed by Alan Carvalho de Assis
parent ee636c5fe2
commit 3ae2a2965f
@@ -77,6 +77,10 @@
# include <nuttx/input/buttons.h>
#endif
#ifdef CONFIG_VIDEO_FB
# include <nuttx/video/fb.h>
#endif
#ifdef CONFIG_LCD_DEV
# include <nuttx/board.h>
# include <nuttx/lcd/lcd_dev.h>
@@ -320,6 +324,14 @@ int esp32_bringup(void)
}
#endif
#ifdef CONFIG_VIDEO_FB
ret = fb_register(0, 0);
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: Failed to initialize Frame Buffer Driver.\n");
}
#endif
#ifdef CONFIG_LCD_DEV
ret = board_lcd_initialize();
if (ret < 0)