Skip to content

Commit 76b4dfb

Browse files
committed
The display support was updated and some DSI displays were tested
1 parent 7f8d7e7 commit 76b4dfb

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

bsp/esp32_p4_nano/esp32_p4_nano.c

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -649,12 +649,12 @@ esp_err_t bsp_touch_new(const bsp_touch_config_t *config, esp_lcd_touch_handle_t
649649

650650
/* Initialize touch */
651651
const esp_lcd_touch_config_t tp_cfg = {
652-
#if CONFIG_BSP_LCD_TYPE_480_640_2_8_INCH || CONFIG_BSP_LCD_TYPE_480_800_4_INCH
652+
#if CONFIG_BSP_LCD_TYPE_480_640_2_8_INCH || CONFIG_BSP_LCD_TYPE_480_800_4_INCH || CONFIG_BSP_LCD_TYPE_1024_600_5_INCH_C
653653
.x_max = BSP_LCD_V_RES,
654654
.y_max = BSP_LCD_H_RES,
655655
#else
656-
.x_max = BSP_LCD_V_RES,
657-
.y_max = BSP_LCD_H_RES,
656+
.x_max = BSP_LCD_H_RES,
657+
.y_max = BSP_LCD_V_RES,
658658
#endif
659659
.rst_gpio_num = BSP_LCD_TOUCH_RST, // Shared with LCD reset
660660
.int_gpio_num = BSP_LCD_TOUCH_INT,
@@ -669,8 +669,8 @@ esp_err_t bsp_touch_new(const bsp_touch_config_t *config, esp_lcd_touch_handle_t
669669
.mirror_y = 1,
670670
#elif CONFIG_BSP_LCD_TYPE_800_1280_8_INCH_A
671671
.swap_xy = 0,
672-
.mirror_x = 1,
673-
.mirror_y = 1,
672+
.mirror_x = 0,
673+
.mirror_y = 0,
674674
#elif CONFIG_BSP_LCD_TYPE_720_1280_7_INCH_A
675675
.swap_xy = 0,
676676
.mirror_x = 0,
@@ -691,10 +691,14 @@ esp_err_t bsp_touch_new(const bsp_touch_config_t *config, esp_lcd_touch_handle_t
691691
.swap_xy = 1,
692692
.mirror_x = 1,
693693
.mirror_y = 0,
694-
#else
694+
#elif CONFIG_BSP_LCD_TYPE_1024_600_5_INCH_C
695695
.swap_xy = 1,
696-
.mirror_x = 0,
696+
.mirror_x = 1,
697697
.mirror_y = 1,
698+
#else
699+
.swap_xy = 0,
700+
.mirror_x = 0,
701+
.mirror_y = 0,
698702
#endif
699703
},
700704
};

bsp/esp32_p4_nano/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ tags:
2323
targets:
2424
- esp32p4
2525
url: https://www.waveshare.com/esp32-p4-nano.htm
26-
version: 1.1.2
26+
version: 1.1.3

0 commit comments

Comments
 (0)