Skip to content

Commit 703e54b

Browse files
author
Greg Smith
committed
Fixed issue with screen rotation on JC3248W and WS3.5B.
1 parent 8f6521d commit 703e54b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

source/main/platform_jc3248w.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,8 @@ void platform_init(i2c_master_bus_handle_t bus_handle, SemaphoreHandle_t I2CMute
608608

609609
if (control_get_config_item_int(CONFIG_ITEM_SCREEN_ROTATION) == SCREEN_ROTATION_180)
610610
{
611-
rotation_setting = LV_DISP_ROT_180;
611+
// 270 here as normal landscape mode is 90 degrees
612+
rotation_setting = LV_DISP_ROT_270;
612613
}
613614
}
614615

source/main/platform_ws35b.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,8 @@ void platform_init(i2c_master_bus_handle_t bus_handle, SemaphoreHandle_t I2CMute
665665

666666
if (control_get_config_item_int(CONFIG_ITEM_SCREEN_ROTATION) == SCREEN_ROTATION_180)
667667
{
668-
rotation_setting = LV_DISP_ROT_180;
668+
// 270 here as normal landscape mode is 90 degrees
669+
rotation_setting = LV_DISP_ROT_270;
669670
}
670671
}
671672

0 commit comments

Comments
 (0)