-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disp_drv.rotated not working with ST7735 driver #3
Comments
Hi, You're right, the drivers code were developed without taking in consideration the After merging that repo I will try to update the drivers orientation code. |
void st7735s_flush(lv_disp_drv_t * drv, const lv_area_t * area, lv_color_t * color_map)
} |
Ditch st7735s_portrait_mode var, totally unnecessary... |
Wrong: |
Sorry for last two mentions, I didn’t intend too, never though from a fork the parent repo issues are touched. |
The problem is that the ST7735 display is 160x128 pixels.
So if you set:
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...
The text was updated successfully, but these errors were encountered: