File tree Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 1- version : " 1.6.2 "
1+ version : " 1.6.3 "
22description : Board Support Package (BSP) for ESP32-S3-USB-OTG
33url : https://github.com/espressif/esp-bsp/tree/master/bsp/esp32_s3_usb_otg
44
Original file line number Diff line number Diff line change @@ -700,7 +700,25 @@ menu "Board Support Package (generic)"
700700 default 240
701701 help
702702 The height in pixels of the display.
703-
703+
704+ config BSP_DISPLAY_HORIZONTAL_OFFSET
705+ depends on BSP_DISPLAY_ENABLED
706+ int
707+ prompt "Display horizontal offset"
708+ default 0
709+ help
710+ Some displays has offset. First columns and rows are not visible on screen
711+ (specific connection layout between screen and controler).
712+
713+ config BSP_DISPLAY_VERTICAL_OFFSET
714+ depends on BSP_DISPLAY_ENABLED
715+ int
716+ prompt "Display vertical offset"
717+ default 0
718+ help
719+ Some displays has offset. First columns and rows are not visible on screen
720+ (specific connection layout between screen and controler).
721+
704722 config BSP_DISPLAY_BRIGHTNESS_LEDC_CH
705723 depends on BSP_DISPLAY_ENABLED && BSP_DISPLAY_BACKLIGHT_GPIO != -1
706724 int "LEDC channel index for brightness control"
Original file line number Diff line number Diff line change 3737/* Display definition */
3838#define BSP_LCD_H_RES (CONFIG_BSP_DISPLAY_WIDTH)
3939#define BSP_LCD_V_RES (CONFIG_BSP_DISPLAY_HEIGHT)
40+ #define BSP_LCD_H_OFFSET (CONFIG_BSP_DISPLAY_HORIZONTAL_OFFSET)
41+ #define BSP_LCD_V_OFFSET (CONFIG_BSP_DISPLAY_VERTICAL_OFFSET)
4042
4143#ifdef __cplusplus
4244extern "C" {
Original file line number Diff line number Diff line change @@ -616,7 +616,9 @@ static lv_display_t *bsp_display_lcd_init(void)
616616#endif
617617 }
618618 };
619-
619+ #if BSP_LCD_H_OFFSET || BSP_LCD_V_OFFSET
620+ esp_lcd_panel_set_gap (panel_handle , (BSP_LCD_H_OFFSET ), (BSP_LCD_V_OFFSET ));
621+ #endif
620622 return lvgl_port_add_disp (& disp_cfg );
621623}
622624
You can’t perform that action at this time.
0 commit comments