Switch between horizontal and vertical screens (Rotation)
lvgl.disp_set_rotation(nil, lvgl.DISP_ROT_angle)
To switch between horizontal and vertical screen display, the core version number must be >= 3202
parameter.
parameter | type | Definition | value |
---|---|---|---|
nil | meaningless | nil | |
angle | display angle | 0,90,270,360 |
Return value
nil
example
lvgl.init()- -初始化
lvgl.disp_set_rotation(nil, lvgl.DISP_ROT_270)- -切换为横屏