Skip to content

Commit

Permalink
Do not call swap/rotate for panel interfaces (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzeldent authored Mar 28, 2024
1 parent 4def308 commit 55290a4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 23 deletions.
2 changes: 1 addition & 1 deletion boards
Submodule boards updated 1 files
+2 −1 esp32-2432S028R.json
9 changes: 1 addition & 8 deletions src/lvgl_panel_st7262_par.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 0 additions & 7 deletions src/lvgl_panel_st7701_par.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
7 changes: 0 additions & 7 deletions src/lvgl_panel_st7789_i80.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 55290a4

Please sign in to comment.