mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
boards/esp32-wrover-kit: Add support for Framebuffer character driver
This commit is contained in:
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)
|
||||
|
||||
Reference in New Issue
Block a user