ST7789: LVGL rotation support (#182)
* TFT/Kconfig: Update orientation values * ST7789: Use lv_disp_drv_t rotation field instead of the configured from menuconfig * ST7789: Update orientation at runtime * ST7789: Apply workaround to detect orientation change at runtime * ST7789: Add helper to get display size in v7 and v8 * ST7789: Fix compilation errors * ST7789: Handle rotation of display with 135x240 dimension * ST7789: Handle v8 when getting lv_disp_t from lv_disp_drv_t
This commit is contained in:
parent
8d9f6e2548
commit
1759b774a9
2 changed files with 119 additions and 30 deletions
|
@ -214,8 +214,8 @@ menu "LVGL TFT Display controller"
|
|||
config LV_DISPLAY_ORIENTATION
|
||||
int
|
||||
default 0 if LV_DISPLAY_ORIENTATION_PORTRAIT
|
||||
default 1 if LV_DISPLAY_ORIENTATION_PORTRAIT_INVERTED
|
||||
default 2 if LV_DISPLAY_ORIENTATION_LANDSCAPE
|
||||
default 2 if LV_DISPLAY_ORIENTATION_PORTRAIT_INVERTED
|
||||
default 1 if LV_DISPLAY_ORIENTATION_LANDSCAPE
|
||||
default 3 if LV_DISPLAY_ORIENTATION_LANDSCAPE_INVERTED
|
||||
|
||||
config LV_TFT_DISPLAY_OFFSETS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue