diff --git a/examples/chatgpt_demo/factory_nvs/main/main.c b/examples/chatgpt_demo/factory_nvs/main/main.c index 824a561..f1e23bd 100644 --- a/examples/chatgpt_demo/factory_nvs/main/main.c +++ b/examples/chatgpt_demo/factory_nvs/main/main.c @@ -1,4 +1,4 @@ -/* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD +/* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -114,7 +114,16 @@ void app_main(void) ESP_ERROR_CHECK(esp_tinyuf2_install(NULL, &nvs_config)); bsp_i2c_init(); - bsp_display_start(); + + bsp_display_cfg_t cfg = { + .lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(), + .buffer_size = BSP_LCD_H_RES * CONFIG_BSP_LCD_DRAW_BUF_HEIGHT, + .double_buffer = 0, + .flags = { + .buff_dma = true, + } + }; + bsp_display_start_with_config(&cfg); bsp_display_backlight_on(); ui_init(); diff --git a/examples/chatgpt_demo/main/main.c b/examples/chatgpt_demo/main/main.c index 114c950..26c69bd 100644 --- a/examples/chatgpt_demo/main/main.c +++ b/examples/chatgpt_demo/main/main.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: CC0-1.0 */ @@ -203,7 +203,16 @@ void app_main() bsp_spiffs_mount(); bsp_i2c_init(); - bsp_display_start(); + + bsp_display_cfg_t cfg = { + .lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(), + .buffer_size = BSP_LCD_H_RES * CONFIG_BSP_LCD_DRAW_BUF_HEIGHT, + .double_buffer = 0, + .flags = { + .buff_dma = true, + } + }; + bsp_display_start_with_config(&cfg); bsp_board_init(); ESP_LOGI(TAG, "Display LVGL demo"); diff --git a/examples/esp_joystick/joystick_controller/main/joystick_controller_main.c b/examples/esp_joystick/joystick_controller/main/joystick_controller_main.c index 50c18b3..43bfdb2 100644 --- a/examples/esp_joystick/joystick_controller/main/joystick_controller_main.c +++ b/examples/esp_joystick/joystick_controller/main/joystick_controller_main.c @@ -35,7 +35,15 @@ void app_main(void) bsp_i2c_init(); /* Initialize display and LVGL */ - bsp_display_start(); + bsp_display_cfg_t cfg = { + .lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(), + .buffer_size = BSP_LCD_H_RES * CONFIG_BSP_LCD_DRAW_BUF_HEIGHT, + .double_buffer = 0, + .flags = { + .buff_dma = true, + } + }; + bsp_display_start_with_config(&cfg); /* Set default display brightness */ bsp_display_brightness_set(APP_DISP_DEFAULT_BRIGHTNESS); diff --git a/examples/factory_demo/main/main.c b/examples/factory_demo/main/main.c index ce67b0c..cfb9d93 100644 --- a/examples/factory_demo/main/main.c +++ b/examples/factory_demo/main/main.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Unlicense OR CC0-1.0 */ @@ -108,7 +108,12 @@ void app_main(void) bsp_i2c_init(); bsp_display_cfg_t cfg = { - .lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG() + .lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(), + .buffer_size = BSP_LCD_H_RES * CONFIG_BSP_LCD_DRAW_BUF_HEIGHT, + .double_buffer = 0, + .flags = { + .buff_dma = true, + } }; cfg.lvgl_port_cfg.task_affinity = 1; bsp_display_start_with_config(&cfg); diff --git a/examples/image_display/main/image_display.c b/examples/image_display/main/image_display.c index 4dbf2a3..6e8262c 100644 --- a/examples/image_display/main/image_display.c +++ b/examples/image_display/main/image_display.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: CC0-1.0 */ @@ -21,7 +21,15 @@ void app_main(void) bsp_i2c_init(); /* Initialize display and LVGL */ - bsp_display_start(); + bsp_display_cfg_t cfg = { + .lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(), + .buffer_size = BSP_LCD_H_RES * CONFIG_BSP_LCD_DRAW_BUF_HEIGHT, + .double_buffer = 0, + .flags = { + .buff_dma = true, + } + }; + bsp_display_start_with_config(&cfg); /* Set display brightness to 100% */ bsp_display_backlight_on(); diff --git a/examples/lv_demos/main/lv_demos.c b/examples/lv_demos/main/lv_demos.c index 7fccf04..94de311 100644 --- a/examples/lv_demos/main/lv_demos.c +++ b/examples/lv_demos/main/lv_demos.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Unlicense OR CC0-1.0 */ @@ -13,7 +13,15 @@ void app_main(void) /* Initialize I2C (for touch and audio) */ bsp_i2c_init(); /* Initialize display and LVGL */ - bsp_display_start(); + bsp_display_cfg_t cfg = { + .lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(), + .buffer_size = BSP_LCD_H_RES * CONFIG_BSP_LCD_DRAW_BUF_HEIGHT, + .double_buffer = 0, + .flags = { + .buff_dma = true, + } + }; + bsp_display_start_with_config(&cfg); /* Set display brightness to 100% */ bsp_display_backlight_on(); diff --git a/examples/matter_switch/main/box_main.c b/examples/matter_switch/main/box_main.c index 48ad29a..e630ff1 100644 --- a/examples/matter_switch/main/box_main.c +++ b/examples/matter_switch/main/box_main.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Unlicense OR CC0-1.0 */ @@ -112,6 +112,11 @@ void box_main(void) .task_affinity = -1, \ .task_max_sleep_ms = 500, \ .timer_period_ms = 5, \ + }, + .buffer_size = BSP_LCD_H_RES * CONFIG_BSP_LCD_DRAW_BUF_HEIGHT, + .double_buffer = 0, + .flags = { + .buff_dma = true, } }; bsp_display_start_with_config(&cfg); diff --git a/examples/mp3_demo/main/mp3_demo.c b/examples/mp3_demo/main/mp3_demo.c index 7aa5682..283093b 100644 --- a/examples/mp3_demo/main/mp3_demo.c +++ b/examples/mp3_demo/main/mp3_demo.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: CC0-1.0 */ @@ -34,7 +34,15 @@ void app_main(void) bsp_i2c_init(); /* Initialize display and LVGL */ - bsp_display_start(); + bsp_display_cfg_t cfg = { + .lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(), + .buffer_size = BSP_LCD_H_RES * CONFIG_BSP_LCD_DRAW_BUF_HEIGHT, + .double_buffer = 0, + .flags = { + .buff_dma = true, + } + }; + bsp_display_start_with_config(&cfg); /* Set display brightness to 100% */ bsp_display_backlight_on(); diff --git a/examples/watering_demo/main/main.c b/examples/watering_demo/main/main.c index a2b263d..1b1faf1 100644 --- a/examples/watering_demo/main/main.c +++ b/examples/watering_demo/main/main.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Unlicense OR CC0-1.0 */ @@ -82,7 +82,16 @@ void app_main(void) ESP_ERROR_CHECK(app_humidity_init()); bsp_i2c_init(); - bsp_display_start(); + + bsp_display_cfg_t cfg = { + .lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(), + .buffer_size = BSP_LCD_H_RES * CONFIG_BSP_LCD_DRAW_BUF_HEIGHT, + .double_buffer = 0, + .flags = { + .buff_dma = true, + } + }; + bsp_display_start_with_config(&cfg); bsp_board_init(); ESP_ERROR_CHECK(bsp_spiffs_mount()); diff --git a/tools/build_apps.py b/tools/build_apps.py index f198e90..8189ab6 100644 --- a/tools/build_apps.py +++ b/tools/build_apps.py @@ -27,6 +27,7 @@ IGNORE_WARNINGS = [ r'warning: unknown kconfig symbol \'BTDM_CTRL_MODE_BLE_ONLY\' assigned to*', r'warning: unknown kconfig symbol \'IO_GLITCH_FILTER_TIME_MS\' assigned to*', r'warning: unknown kconfig symbol \'BSP_TOUCH_BUTTON\' assigned to*', + r'warning: default value 0 on ESPNOW_OTA_SEND_FORWARD_TTL', ] def _get_idf_version():