-
Notifications
You must be signed in to change notification settings - Fork 177
Open
Labels
Description
Board
ESP32S3-WROOM1-N16R8 Custom Board
Hardware Description
LCD RGB565 480x854
IDE Name
VSCode
Operating System
Windows 11
Description
in /lvgl9/esp_lvgl_port.c
function lvgl_port_task_deinit
lv_deinit is only called for the following
#if LV_ENABLE_GC || !LV_MEM_CUSTOM
Neither of which is in LVGL9
I think it should be
#if LV_USE_STDLIB_MALLOC == LV_STDLIB_BUILTIN
Sketch
esp_err_t test_dev_lcd_lvgl_deinit(void)
{
esp_err_t ret = ESP_OK;
// Remove display from LVGL
if (disp != NULL) {
ret = lvgl_port_remove_disp(disp);
ESP_RETURN_ON_ERROR(ret, TAG, "Failed to remove display from LVGL");
disp = NULL;
}
ESP_ERROR_CHECK(esp_lcd_panel_del(panel_handle));
panel_handle = NULL;
// Deinitialize LVGL port
ret = lvgl_port_deinit();
ESP_RETURN_ON_ERROR(ret, TAG, "Failed to deinitialize LVGL port");
return ESP_OK;
}
void deinit()
{
ESP_ERROR_CHECK(lvgl_port_stop());
vTaskDelay(pdMS_TO_TICKS(100));
ESP_ERROR_CHECK(test_dev_lcd_lvgl_deinit());
}Other Steps to Reproduce
No response
I have checked existing issues, README.md and ESP32 Forum
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.