Skip to content

Commit

Permalink
esp_lvgl_port: apply rotation from display configuration
Browse files Browse the repository at this point in the history
Initial rotation set in lvgl_port_display_cfg_t was not applied
properly after display initialization. This commit adds call to
update callback that sets the swap and mirror properties on panel.
  • Loading branch information
cybekRT committed Jan 15, 2024
1 parent c62e19f commit e42ed11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/esp_lvgl_port/esp_lvgl_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ lv_disp_t *lvgl_port_add_disp(const lvgl_port_display_cfg_t *disp_cfg)
if (disp_ctx) {
free(disp_ctx);
}
} else {
/* Apply rotation from initial display configuration */
lvgl_port_update_callback(&disp_ctx->disp_drv);
}

return disp;
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: "1.4.0"
version: "1.4.1"
description: ESP LVGL port
url: https://github.com/espressif/esp-bsp/tree/master/components/esp_lvgl_port
dependencies:
Expand Down

0 comments on commit e42ed11

Please sign in to comment.