修改屏幕像素频率为10Mhz,进行了颜色矫正

This commit is contained in:
jarvis 2025-03-03 21:20:45 +08:00
parent 6958681442
commit e41d7e3527
2 changed files with 7 additions and 4 deletions

View File

@ -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 = {

View File

@ -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