File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
examples/display/lcd_camera/main Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,15 @@ void app_main(void)
103
103
{
104
104
esp_periph_config_t periph_cfg = DEFAULT_ESP_PERIPH_SET_CONFIG ();
105
105
esp_periph_set_handle_t set = esp_periph_set_init (& periph_cfg );
106
- esp_lcd_panel_handle_t panel_handle = audio_board_lcd_init (set , NULL );
107
106
107
+ // Because the current development board camera shares the i2c interface with the expansion chip.
108
+ // The expansion chip operation may be abnormal, so the camera is initialized in advance
108
109
if (ESP_OK != init_camera ()) {
109
110
return ;
110
111
}
112
+
113
+ esp_lcd_panel_handle_t panel_handle = audio_board_lcd_init (set , NULL );
114
+
111
115
if (s_camera_format == PIXFORMAT_YUV422 ) {
112
116
rgb_buffer = audio_calloc (1 , EXAMPLE_LCD_H_RES * EXAMPLE_LCD_V_RES * 2 );
113
117
AUDIO_MEM_CHECK (TAG , rgb_buffer , return );
You can’t perform that action at this time.
0 commit comments