lvgl / lvgl_esp32_drivers

Drivers for ESP32 to be used with LVGL
MIT License
305 stars 272 forks source link

ST7789V cannot be displayed vertically #211

Closed ForgetCSX closed 1 year ago

ForgetCSX commented 1 year ago

The chip used is ESP32 The compilation environment is as follows: I (13) boot: ESP-IDF v4.4.3-316-ge86181704a 2nd stage bootloader I (13) boot: compile time 10:31:27 I (13) boot: chip revision: 1 I (16) boot_comm: chip revision: 1, min. bootloader chip revision: 0 I (23) boot.esp32: SPI Speed : 40MHz I (27) boot.esp32: SPI Mode : DIO I (32) boot.esp32: SPI Flash Size : 2MB The LVGL version is V8.2

Using the highest driver can successfully light up the screen, but it can only be displayed horizontally, not vertically, changing the Kconfig display configuration cannot be solved, is there a problem with the driver refresh, my resolution is 240x320 image image

ForgetCSX commented 1 year ago

Found the problem, I forgot to specify the screen size when initializing。 disp_drv.hor_res = LV_HOR_RES_MAX; disp_drv.ver_res = LV_VER_RES_MAX;