diff --git a/components/esp_lvgl_port/esp_lvgl_port.c b/components/esp_lvgl_port/esp_lvgl_port.c index 7ae281b4..9a2ce332 100644 --- a/components/esp_lvgl_port/esp_lvgl_port.c +++ b/components/esp_lvgl_port/esp_lvgl_port.c @@ -23,7 +23,7 @@ #include "esp_lcd_touch.h" #endif -#if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 1) +#if (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(4, 4, 4)) || (ESP_IDF_VERSION == ESP_IDF_VERSION_VAL(5, 0, 0)) #define LVGL_PORT_HANDLE_FLUSH_READY 0 #else #define LVGL_PORT_HANDLE_FLUSH_READY 1 diff --git a/components/esp_lvgl_port/idf_component.yml b/components/esp_lvgl_port/idf_component.yml index 4f646d7f..277f3524 100644 --- a/components/esp_lvgl_port/idf_component.yml +++ b/components/esp_lvgl_port/idf_component.yml @@ -1,4 +1,4 @@ -version: "1.0.4" +version: "1.0.5" description: ESP LVGL port url: https://github.com/espressif/esp-bsp/tree/master/components/esp_lvgl_port dependencies: diff --git a/esp-box/esp-box.c b/esp-box/esp-box.c index cc5abf65..e9a3bd32 100644 --- a/esp-box/esp-box.c +++ b/esp-box/esp-box.c @@ -133,14 +133,6 @@ esp_err_t bsp_audio_poweramp_enable(bool enable) #define LCD_PARAM_BITS 8 #define LCD_LEDC_CH CONFIG_BSP_DISPLAY_BRIGHTNESS_LEDC_CH -static bool bsp_dispaly_flush_ready(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_io_event_data_t *edata, void *user_ctx) -{ - lv_disp_t **disp = (lv_disp_t **)user_ctx; - - lvgl_port_flush_ready(*disp); - return false; -} - static lv_disp_t *bsp_display_lcd_init(void) { ESP_LOGD(TAG, "Initialize SPI bus"); @@ -164,8 +156,6 @@ static lv_disp_t *bsp_display_lcd_init(void) .lcd_param_bits = LCD_PARAM_BITS, .spi_mode = 0, .trans_queue_depth = 10, - .on_color_trans_done = bsp_dispaly_flush_ready, - .user_ctx = &disp, }; // Attach the LCD to the SPI bus diff --git a/esp-box/idf_component.yml b/esp-box/idf_component.yml index aeabb26a..8e7b21bd 100644 --- a/esp-box/idf_component.yml +++ b/esp-box/idf_component.yml @@ -14,7 +14,7 @@ dependencies: public: true esp_lvgl_port: - version: ^1 + version: "^1" public: true examples: