Hezhou Air724UG LuatOS-Air LVGL API control-screen horizontal and vertical screen switching (Rotation)

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)- -切换为横屏

Guess you like

Origin blog.csdn.net/l531798151/article/details/132783053