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