Description
The problem is that the ST7735 display is 160x128 pixels.
So if you set:
- Landscape during compile time
- disp_drv.rotated = 1 in the code
- Swap display width and height in the code
- Call the ST7735 rotation function for a hardware rotate
It still is not working in portrait mode. The upper 128 pixels are working in portrait mode, the bottom 32 pixels are not functioning at all (pixel noise).
I suspect the LVGL driver code is still thinking that the height is 128 pixels, despite the rotated setting.
Maybe because of this code in LV_CONF.H ?
#define LV_VER_RES_MAX (CONFIG_LVGL_DISPLAY_HEIGHT)
Little log:
D (00:00:02.871) screen: LVGL Width: 128 , Height 160
I (00:00:02.879) lvgl_helpers: Display hor size: 160, ver size: 128
I (00:00:02.880) lvgl_helpers: Display buffer size: 6400
I (00:00:02.890) lvgl_helpers: Initializing SPI master for display
I (00:00:02.892) lvgl_helpers: Configuring SPI host VSPI_HOST (2)
I (00:00:02.898) lvgl_helpers: MISO pin: -1, MOSI pin: 23, SCLK pin: 18
I (00:00:02.910) lvgl_helpers: Max transfer size: 12800 (bytes)
I (00:00:02.912) lvgl_helpers: Initializing SPI bus...