mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Fix Lanbon rotation
This commit is contained in:
parent
456a9aadb1
commit
d715d8c4dd
@ -197,9 +197,7 @@ void guiSetup()
|
|||||||
lv_disp_t* display = lv_disp_drv_register(&disp_drv);
|
lv_disp_t* display = lv_disp_drv_register(&disp_drv);
|
||||||
lv_disp_set_rotation(display, LV_DISP_ROT_NONE);
|
lv_disp_set_rotation(display, LV_DISP_ROT_NONE);
|
||||||
|
|
||||||
#else
|
#elif defined(LANBONL8)
|
||||||
|
|
||||||
#if defined(LANBONL8)
|
|
||||||
|
|
||||||
static lv_disp_drv_t disp_drv;
|
static lv_disp_drv_t disp_drv;
|
||||||
lv_disp_drv_init(&disp_drv);
|
lv_disp_drv_init(&disp_drv);
|
||||||
@ -209,7 +207,7 @@ void guiSetup()
|
|||||||
disp_drv.hor_res = tft_width;
|
disp_drv.hor_res = tft_width;
|
||||||
disp_drv.ver_res = tft_height;
|
disp_drv.ver_res = tft_height;
|
||||||
|
|
||||||
lv_disp_rot_t rotation[] = {LV_DISP_ROT_NONE, LV_DISP_ROT_90, LV_DISP_ROT_180, LV_DISP_ROT_270};
|
lv_disp_rot_t rotation[] = {LV_DISP_ROT_NONE, LV_DISP_ROT_270, LV_DISP_ROT_180, LV_DISP_ROT_90};
|
||||||
lv_disp_t* display = lv_disp_drv_register(&disp_drv);
|
lv_disp_t* display = lv_disp_drv_register(&disp_drv);
|
||||||
lv_disp_set_rotation(display, rotation[(4 + gui_settings.rotation - TFT_ROTATION) % 4]);
|
lv_disp_set_rotation(display, rotation[(4 + gui_settings.rotation - TFT_ROTATION) % 4]);
|
||||||
|
|
||||||
@ -241,8 +239,6 @@ void guiSetup()
|
|||||||
lv_disp_t* display = lv_disp_drv_register(&disp_drv);
|
lv_disp_t* display = lv_disp_drv_register(&disp_drv);
|
||||||
lv_disp_set_rotation(display, rotation[(4 + gui_settings.rotation - TFT_ROTATION) % 4]);
|
lv_disp_set_rotation(display, rotation[(4 + gui_settings.rotation - TFT_ROTATION) % 4]);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Initialize Filesystems */
|
/* Initialize Filesystems */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user