Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
espzav committed Apr 26, 2024
1 parent 8b2a074 commit 8d14ae7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions components/esp_lvgl_port/examples/rgb_lcd/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ static esp_err_t app_lvgl_init(void)
const lvgl_port_display_rgb_cfg_t rgb_cfg = {
.flags = {
#if EXAMPLE_LCD_RGB_BOUNCE_BUFFER_MODE
.bb_mode = 1,
.bb_mode = true,
#else
.bb_mode = 0,
.bb_mode = false,
#endif
}
};
Expand Down Expand Up @@ -271,9 +271,6 @@ static void app_main_display(void)
{
lv_obj_t *scr = lv_scr_act();

/* Task lock */
lvgl_port_lock(0);

/* Your LVGL objects code here .... */

/* Create image */
Expand All @@ -299,9 +296,6 @@ static void app_main_display(void)
lv_label_set_text_static(label, "Rotate screen");
lv_obj_align(btn, LV_ALIGN_BOTTOM_MID, 0, -30);
lv_obj_add_event_cb(btn, _app_button_cb, LV_EVENT_CLICKED, NULL);

/* Task unlock */
lvgl_port_unlock();
}

void app_main(void)
Expand All @@ -316,6 +310,8 @@ void app_main(void)
ESP_ERROR_CHECK(app_lvgl_init());

/* Show LVGL objects */
lvgl_port_lock(0);
//app_main_display();
lv_demo_music();
lvgl_port_unlock();
}
2 changes: 1 addition & 1 deletion components/esp_lvgl_port/src/lvgl8/esp_lvgl_port_disp.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ static bool lvgl_port_flush_vsync_ready_callback(esp_lcd_panel_handle_t panel_io
{
BaseType_t need_yield = pdFALSE;

lv_display_t *disp_drv = (lv_display_t *)user_ctx;
lv_disp_drv_t *disp_drv = (lv_display_t *)user_ctx;
assert(disp_drv != NULL);
need_yield = lvgl_port_task_notify(ULONG_MAX);

Expand Down

0 comments on commit 8d14ae7

Please sign in to comment.