Skip to content

Commit

Permalink
Merge pull request #339 from espressif/fix/lvgl_port_idf4.4.3
Browse files Browse the repository at this point in the history
fix(esp_lvgl_port): Fixed missing callback in IDF4.4.3 and lower
  • Loading branch information
espzav authored Jun 12, 2024
2 parents 8d403e7 + f59d5ff commit 5c7b366
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions components/esp_lvgl_port/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 2.2.2

### Fixes
- Fixed missing callback in IDF4.4.3 and lower for LVGL port

## 2.2.1

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion components/esp_lvgl_port/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2.2.1"
version: "2.2.2"
description: ESP LVGL port
url: https://github.com/espressif/esp-bsp/tree/master/components/esp_lvgl_port
dependencies:
Expand Down
3 changes: 3 additions & 0 deletions components/esp_lvgl_port/src/lvgl8/esp_lvgl_port_disp.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,14 @@ lv_disp_t *lvgl_port_add_disp(const lvgl_port_display_cfg_t *disp_cfg)
disp_ctx->disp_type = LVGL_PORT_DISP_TYPE_OTHER;

assert(disp_ctx->io_handle != NULL);

#if LVGL_PORT_HANDLE_FLUSH_READY
const esp_lcd_panel_io_callbacks_t cbs = {
.on_color_trans_done = lvgl_port_flush_io_ready_callback,
};
/* Register done callback */
esp_lcd_panel_io_register_event_callbacks(disp_ctx->io_handle, &cbs, &disp_ctx->disp_drv);
#endif
}

return disp;
Expand Down
3 changes: 3 additions & 0 deletions components/esp_lvgl_port/src/lvgl9/esp_lvgl_port_disp.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,14 @@ lv_display_t *lvgl_port_add_disp(const lvgl_port_display_cfg_t *disp_cfg)
disp_ctx->disp_type = LVGL_PORT_DISP_TYPE_OTHER;

assert(disp_cfg->io_handle != NULL);

#if LVGL_PORT_HANDLE_FLUSH_READY
const esp_lcd_panel_io_callbacks_t cbs = {
.on_color_trans_done = lvgl_port_flush_io_ready_callback,
};
/* Register done callback */
esp_lcd_panel_io_register_event_callbacks(disp_ctx->io_handle, &cbs, disp);
#endif

/* Apply rotation from initial display configuration */
lvgl_port_disp_rotation_update(disp_ctx);
Expand Down
2 changes: 1 addition & 1 deletion examples/display/main/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ description: BSP Display example

dependencies:
esp_wrover_kit:
version: "^1.0.0"
version: "*"
override_path: "../../../bsp/esp_wrover_kit"
2 changes: 1 addition & 1 deletion examples/generic_button_led/main/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ description: BSP Display example

dependencies:
esp_bsp_generic:
version: "^1.0.0"
version: "*"
override_path: "../../../bsp/esp_bsp_generic"

0 comments on commit 5c7b366

Please sign in to comment.