diff --git a/boards b/boards index 8c623d4..281d5e4 160000 --- a/boards +++ b/boards @@ -1 +1 @@ -Subproject commit 8c623d474c41bf9288e84eeda3d4a8b268496a45 +Subproject commit 281d5e4278ae31ad133074328ec1d291a4d62673 diff --git a/src/lvgl_panel_st7262_par.c b/src/lvgl_panel_st7262_par.c index 78850ba..ffa13c0 100644 --- a/src/lvgl_panel_st7262_par.c +++ b/src/lvgl_panel_st7262_par.c @@ -72,18 +72,11 @@ void lvgl_lcd_init(lv_disp_drv_t *drv) // If LCD is IPS invert the colors ESP_ERROR_CHECK(esp_lcd_panel_invert_color(panel_handle, true)); #endif -#ifdef DISPLAY_SWAP_XY - //ESP_ERROR_CHECK(esp_lcd_panel_swap_xy(panel_handle, DISPLAY_SWAP_XY)); -#endif -#if defined(DISPLAY_MIRROR_X) || defined(DISPLAY_MIRROR_Y) - //ESP_ERROR_CHECK(esp_lcd_panel_mirror(panel_handle, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y)); -#endif #if defined(DISPLAY_GAP_X) || defined(DISPLAY_GAP_Y) ESP_ERROR_CHECK(esp_lcd_panel_set_gap(panel_handle, DISPLAY_GAP_X, DISPLAY_GAP_Y)); #endif - drv->user_data = panel_handle; drv->flush_cb = direct_io_lv_flush; } -#endif +#endif \ No newline at end of file diff --git a/src/lvgl_panel_st7701_par.c b/src/lvgl_panel_st7701_par.c index 8f5df1d..c581951 100644 --- a/src/lvgl_panel_st7701_par.c +++ b/src/lvgl_panel_st7701_par.c @@ -100,16 +100,9 @@ void lvgl_lcd_init(lv_disp_drv_t *drv) // If LCD is IPS invert the colors ESP_ERROR_CHECK(esp_lcd_panel_invert_color(panel_handle, true)); #endif -#ifdef DISPLAY_SWAP_XY - ESP_ERROR_CHECK(esp_lcd_panel_swap_xy(panel_handle, DISPLAY_SWAP_XY)); -#endif -#if defined(DISPLAY_MIRROR_X) || defined(DISPLAY_MIRROR_Y) - ESP_ERROR_CHECK(esp_lcd_panel_mirror(panel_handle, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y)); -#endif #if defined(DISPLAY_GAP_X) || defined(DISPLAY_GAP_Y) ESP_ERROR_CHECK(esp_lcd_panel_set_gap(panel_handle, DISPLAY_GAP_X, DISPLAY_GAP_Y)); #endif - drv->user_data = panel_handle; drv->flush_cb = direct_io_lv_flush; } diff --git a/src/lvgl_panel_st7789_i80.c b/src/lvgl_panel_st7789_i80.c index 3f772b0..a857f1e 100644 --- a/src/lvgl_panel_st7789_i80.c +++ b/src/lvgl_panel_st7789_i80.c @@ -94,16 +94,9 @@ void lvgl_lcd_init(lv_disp_drv_t *drv) // If LCD is IPS invert the colors ESP_ERROR_CHECK(esp_lcd_panel_invert_color(panel_handle, true)); #endif -#ifdef DISPLAY_SWAP_XY - ESP_ERROR_CHECK(esp_lcd_panel_swap_xy(panel_handle, DISPLAY_SWAP_XY)); -#endif -#if defined(DISPLAY_MIRROR_X) || defined(DISPLAY_MIRROR_Y) - ESP_ERROR_CHECK(esp_lcd_panel_mirror(panel_handle, DISPLAY_MIRROR_X, DISPLAY_MIRROR_Y)); -#endif #if defined(DISPLAY_GAP_X) || defined(DISPLAY_GAP_Y) ESP_ERROR_CHECK(esp_lcd_panel_set_gap(panel_handle, DISPLAY_GAP_X, DISPLAY_GAP_Y)); #endif - drv->user_data = panel_handle; drv->flush_cb = st7789_lv_flush; }