This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/task.h"
|
||||
#include "esp_log.h"
|
||||
#include "esp_lcd_panel_io.h"
|
||||
#include "esp_lcd_panel_ops.h"
|
||||
@@ -68,10 +70,13 @@ esp_err_t display_manager_init(void)
|
||||
}
|
||||
|
||||
ESP_ERROR_CHECK(esp_lcd_panel_reset(s_panel));
|
||||
vTaskDelay(pdMS_TO_TICKS(150)); /* Allow ST7789 internal charge pump to fully stabilize */
|
||||
ESP_ERROR_CHECK(esp_lcd_panel_init(s_panel));
|
||||
vTaskDelay(pdMS_TO_TICKS(20));
|
||||
ESP_ERROR_CHECK(esp_lcd_panel_invert_color(s_panel, true));
|
||||
ESP_ERROR_CHECK(esp_lcd_panel_mirror(s_panel, true, true));
|
||||
ESP_ERROR_CHECK(esp_lcd_panel_disp_on_off(s_panel, true));
|
||||
vTaskDelay(pdMS_TO_TICKS(50));
|
||||
|
||||
/* 2. Initialize LVGL port on Core 1 */
|
||||
lvgl_port_cfg_t port_cfg = ESP_LVGL_PORT_INIT_CONFIG();
|
||||
|
||||
Reference in New Issue
Block a user