From e41d7e35279b0440f28d75fbf277dfb251dccc14 Mon Sep 17 00:00:00 2001 From: jarvis <1071094494@qq.com> Date: Mon, 3 Mar 2025 21:20:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B1=8F=E5=B9=95=E5=83=8F?= =?UTF-8?q?=E7=B4=A0=E9=A2=91=E7=8E=87=E4=B8=BA10Mhz=EF=BC=8C=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E4=BA=86=E9=A2=9C=E8=89=B2=E7=9F=AB=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/i80_controller_example_main.c | 9 ++++++--- sdkconfig | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/main/i80_controller_example_main.c b/main/i80_controller_example_main.c index c157c42..2b0df6c 100644 --- a/main/i80_controller_example_main.c +++ b/main/i80_controller_example_main.c @@ -25,7 +25,7 @@ static const char *TAG = "example"; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #define EXAMPLE_LCD_PIXEL_CLOCK_HZ CONFIG_EXAMPLE_LCD_PIXEL_CLOCK_HZ -#define EXAMPLE_LCD_BK_LIGHT_ON_LEVEL 1 +#define EXAMPLE_LCD_BK_LIGHT_ON_LEVEL 0 #define EXAMPLE_LCD_BK_LIGHT_OFF_LEVEL !EXAMPLE_LCD_BK_LIGHT_ON_LEVEL #define EXAMPLE_PIN_NUM_DATA0 18 #define EXAMPLE_PIN_NUM_DATA1 17 @@ -249,8 +249,11 @@ void example_init_lcd_panel(esp_lcd_panel_io_handle_t io_handle, esp_lcd_panel_h esp_lcd_panel_init(panel_handle); // Set inversion, x/y coordinate order, x/y mirror according to your LCD module spec // the gap is LCD panel specific, even panels with the same driver IC, can have different gap value - esp_lcd_panel_invert_color(panel_handle, true); - esp_lcd_panel_set_gap(panel_handle, 0, 20); + esp_lcd_panel_invert_color(panel_handle, false); + esp_lcd_panel_set_gap(panel_handle, 0, 0); + + esp_lcd_panel_mirror(panel_handle, true, false); + #elif CONFIG_EXAMPLE_LCD_I80_CONTROLLER_NT35510 ESP_LOGI(TAG, "Install LCD driver of nt35510"); esp_lcd_panel_dev_config_t panel_config = { diff --git a/sdkconfig b/sdkconfig index bca05fe..e77ac9a 100644 --- a/sdkconfig +++ b/sdkconfig @@ -540,7 +540,7 @@ CONFIG_PARTITION_TABLE_MD5=y # Example Configuration # CONFIG_EXAMPLE_LCD_I80_COLOR_IN_PSRAM=y -CONFIG_EXAMPLE_LCD_PIXEL_CLOCK_HZ=2000000 +CONFIG_EXAMPLE_LCD_PIXEL_CLOCK_HZ=10000000 CONFIG_EXAMPLE_LCD_I80_CONTROLLER_ST7789=y # CONFIG_EXAMPLE_LCD_I80_CONTROLLER_NT35510 is not set # CONFIG_EXAMPLE_LCD_I80_CONTROLLER_ILI9341 is not set