mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 06:45:19 +00:00
boards/esp32-wrover-kit: Add support for Framebuffer character driver
This commit is contained in:
parent
ee636c5fe2
commit
3ae2a2965f
1 changed files with 12 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue