File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
boards/xtensa/esp32/esp32-devkitc/src Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 131
131
# include <nuttx/input/buttons.h>
132
132
#endif
133
133
134
+ #ifdef CONFIG_LCD_DEV
135
+ # include <nuttx/board.h>
136
+ # include <nuttx/lcd/lcd_dev.h>
137
+ #endif
138
+
134
139
#ifdef CONFIG_RTC_DRIVER
135
140
# include "esp32_rtc_lowerhalf.h"
136
141
#endif
@@ -605,6 +610,20 @@ int esp32_bringup(void)
605
610
}
606
611
#endif
607
612
613
+ #ifdef CONFIG_LCD_DEV
614
+ ret = board_lcd_initialize ();
615
+ if (ret < 0 )
616
+ {
617
+ syslog (LOG_ERR , "ERROR: board_lcd_initialize() failed: %d\n" , ret );
618
+ }
619
+
620
+ ret = lcddev_register (0 );
621
+ if (ret < 0 )
622
+ {
623
+ syslog (LOG_ERR , "ERROR: lcddev_register() failed: %d\n" , ret );
624
+ }
625
+ #endif
626
+
608
627
#ifdef CONFIG_RTC_DRIVER
609
628
/* Instantiate the ESP32 RTC driver */
610
629
You can’t perform that action at this time.
0 commit comments