mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 12:16:42 +00:00
Revert lv_disp_set_rotation
This commit is contained in:
parent
d4f5bea65c
commit
971dbe5ff0
@ -174,18 +174,22 @@ void guiSetup(void)
|
||||
disp_drv.flush_cb = gui_flush_cb;
|
||||
disp_drv.hor_res = TFT_WIDTH;
|
||||
disp_drv.ver_res = TFT_HEIGHT;
|
||||
lv_disp_t* display = lv_disp_drv_register(&disp_drv);
|
||||
|
||||
switch(gui_settings.rotation) {
|
||||
case 1:
|
||||
case 3:
|
||||
case 5:
|
||||
case 7:
|
||||
lv_disp_set_rotation(display, LV_DISP_ROT_90);
|
||||
// lv_disp_set_rotation(display, LV_DISP_ROT_90);
|
||||
disp_drv.hor_res = TFT_HEIGHT;
|
||||
disp_drv.ver_res = TFT_WIDTH;
|
||||
break;
|
||||
default:
|
||||
lv_disp_set_rotation(display, LV_DISP_ROT_NONE);
|
||||
// lv_disp_set_rotation(display, LV_DISP_ROT_NONE);
|
||||
disp_drv.hor_res = TFT_WIDTH;
|
||||
disp_drv.ver_res = TFT_HEIGHT;
|
||||
}
|
||||
lv_disp_t* display = lv_disp_drv_register(&disp_drv);
|
||||
|
||||
/* Initialize Filesystems */
|
||||
#if LV_USE_FS_IF != 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user