Skip to content

Commit

Permalink
Merge pull request #254 from Lzw655/lcd/fix_gc9503_madctl_default_value
Browse files Browse the repository at this point in the history
gc9503: fix madctl default value
  • Loading branch information
espzav authored Dec 5, 2023
2 parents ba557d9 + 2a7465f commit c92774c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/lcd/esp_lcd_gc9503/esp_lcd_gc9503.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion components/lcd/esp_lcd_gc9503/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.0.0"
version: "3.0.1"
targets:
- esp32s3
description: ESP LCD GC9503
Expand Down

0 comments on commit c92774c

Please sign in to comment.