Skip to content

fly-t/esp32s3_lcd_i80_template

Repository files navigation

修改pin

修改psram

大于8M的psram为8线spi

menuconfig->Component config ->ESP PSRAM->Support of external,SPI-connected RAM
menuconfig->Component config ->ESP PSRAM->SPI RAM config->
Mode (QUAD/OCT) of SPI RAM chip in use (Octal Mode PSRAM)->Octal Mode PSRAM

alt text

注释掉gap

esp_lcd_panel_set_gap(panel_handle, 0, 20);

查看是否颜色反转

RGB和BGR

 esp_lcd_panel_dev_config_t panel_config = {
        .reset_gpio_num = EXAMPLE_PIN_NUM_RST,
        .rgb_endian = LCD_RGB_ENDIAN_BGR, // <------------
        .bits_per_pixel = 16,
    };

显示调整方向

1. xy方向互换

esp_lcd_panel_swap_xy(panel_handle, true);

2. x镜像 / y镜像

esp_lcd_panel_mirror(panel_handle, true, false);

触摸调整方向

1. xy方向互换

2. x镜像 / y镜像

esp_lcd_touch_config_t tp_cfg = {
        .x_max = EXAMPLE_LCD_V_RES,
        .y_max = EXAMPLE_LCD_H_RES,
        .rst_gpio_num = -1,
        .int_gpio_num = -1,
        .flags = {
            .swap_xy = 0,
            .mirror_x = 0,
            .mirror_y = 0,
        },
    };

提高刷屏周期(FPS)

默认的项目是100ms 刷新一次屏幕最大10fps

idf.py menuconfig

(Top) → Component configLVGL configurationHAL Settings
                                                  Espressif IoT Development Framework Configuration
(10) Default display refresh period (ms).   // FPS刷新率
(30) Input device read period [ms].         // 输入刷新率
[ ] Use a custom tick source                
(50) Default Dots Per Inch (in px).         // 每英寸 像素点 数量

square line代码生成

使用16bit项目, 不要16 bit swap!!!

About

esp32 lvgl 8080 demo st7796 ft6336u

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors