From 2a7465f9cfbf260cdf3ba7a2d3496c799dfc1bf9 Mon Sep 17 00:00:00 2001 From: Liu Zhongwei Date: Fri, 1 Dec 2023 18:39:56 +0800 Subject: [PATCH] gc9503: fix madctl default value --- components/lcd/esp_lcd_gc9503/esp_lcd_gc9503.c | 3 ++- components/lcd/esp_lcd_gc9503/idf_component.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/lcd/esp_lcd_gc9503/esp_lcd_gc9503.c b/components/lcd/esp_lcd_gc9503/esp_lcd_gc9503.c index 26a94d34..23c01a5f 100644 --- a/components/lcd/esp_lcd_gc9503/esp_lcd_gc9503.c +++ b/components/lcd/esp_lcd_gc9503/esp_lcd_gc9503.c @@ -75,9 +75,10 @@ esp_err_t esp_lcd_new_panel_gc9503(const esp_lcd_panel_io_handle_t io, const esp ESP_GOTO_ON_ERROR(gpio_config(&io_conf), err, TAG, "configure GPIO for RST line failed"); } + gc9503->madctl_val = GC9503_CMD_MADCTL_DEFAULT; switch (panel_dev_config->rgb_ele_order) { case LCD_RGB_ELEMENT_ORDER_RGB: - gc9503->madctl_val = 0; + gc9503->madctl_val &= ~GC9503_CMD_BGR_BIT; break; case LCD_RGB_ELEMENT_ORDER_BGR: gc9503->madctl_val |= GC9503_CMD_BGR_BIT; diff --git a/components/lcd/esp_lcd_gc9503/idf_component.yml b/components/lcd/esp_lcd_gc9503/idf_component.yml index 22270a27..5141d23e 100644 --- a/components/lcd/esp_lcd_gc9503/idf_component.yml +++ b/components/lcd/esp_lcd_gc9503/idf_component.yml @@ -1,4 +1,4 @@ -version: "3.0.0" +version: "3.0.1" targets: - esp32s3 description: ESP LCD GC9503