Skip to content

Commit

Permalink
GAP_X/GAP_Y
Browse files Browse the repository at this point in the history
  • Loading branch information
rzeldent committed Mar 17, 2024
1 parent 5b047b2 commit 7f64738
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion boards
4 changes: 2 additions & 2 deletions src/lvgl_panel_gc9a01_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ void lvgl_lcd_init(lv_disp_drv_t *drv)
#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(LCD_GAP_X) || defined(LCD_GAP_Y)
ESP_ERROR_CHECK(esp_lcd_panel_set_gap(panel_handle, LCD_GAP_X, LCD_GAP_Y));
#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
// Turn display on
ESP_ERROR_CHECK(esp_lcd_panel_disp_on_off(panel_handle, true));
Expand Down
4 changes: 2 additions & 2 deletions src/lvgl_panel_ili9341_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ void lvgl_lcd_init(lv_disp_drv_t *drv)
#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(LCD_GAP_X) || defined(LCD_GAP_Y)
ESP_ERROR_CHECK(esp_lcd_panel_set_gap(panel_handle, LCD_GAP_X, LCD_GAP_Y));
#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
// Turn display on
ESP_ERROR_CHECK(esp_lcd_panel_disp_on_off(panel_handle, true));
Expand Down
4 changes: 2 additions & 2 deletions src/lvgl_panel_st7262_par.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ void lvgl_lcd_init(lv_disp_drv_t *drv)
#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(LCD_GAP_X) || defined(LCD_GAP_Y)
ESP_ERROR_CHECK(esp_lcd_panel_set_gap(panel_handle, LCD_GAP_X, LCD_GAP_Y));
#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;
Expand Down
4 changes: 2 additions & 2 deletions src/lvgl_panel_st7701_par.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ void lvgl_lcd_init(lv_disp_drv_t *drv)
#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(LCD_GAP_X) || defined(LCD_GAP_Y)
ESP_ERROR_CHECK(esp_lcd_panel_set_gap(panel_handle, LCD_GAP_X, LCD_GAP_Y));
#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;
Expand Down
4 changes: 2 additions & 2 deletions src/lvgl_panel_st7789_i80.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ void lvgl_lcd_init(lv_disp_drv_t *drv)
#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(LCD_GAP_X) || defined(LCD_GAP_Y)
ESP_ERROR_CHECK(esp_lcd_panel_set_gap(panel_handle, LCD_GAP_X, LCD_GAP_Y));
#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;
Expand Down
4 changes: 2 additions & 2 deletions src/lvgl_panel_st7789_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ void lvgl_lcd_init(lv_disp_drv_t *drv)
#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(LCD_GAP_X) || defined(LCD_GAP_Y)
ESP_ERROR_CHECK(esp_lcd_panel_set_gap(panel_handle, LCD_GAP_X, LCD_GAP_Y));
#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
// Turn display on
ESP_ERROR_CHECK(esp_lcd_panel_disp_on_off(panel_handle, true));
Expand Down
4 changes: 2 additions & 2 deletions src/lvgl_panel_st7796_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ void lvgl_lcd_init(lv_disp_drv_t *drv)
#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(LCD_GAP_X) || defined(LCD_GAP_Y)
ESP_ERROR_CHECK(esp_lcd_panel_set_gap(panel_handle, LCD_GAP_X, LCD_GAP_Y));
#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
// Turn display on
ESP_ERROR_CHECK(esp_lcd_panel_disp_on_off(panel_handle, true));
Expand Down

0 comments on commit 7f64738

Please sign in to comment.