CYD 4848S040C improvements and more (#245)

4848S040C:
- Fix SD card CS pin setting for 
- Fixes for colour
- Implement PwmBacklight driver 

Other:
- Fix for TouchDevice type
- Show landscape launcher for square displays
This commit is contained in:
Ken Van Hoeylandt
2025-03-12 23:45:49 +01:00
committed by GitHub
parent ef410086d9
commit 19521791c5
7 changed files with 34 additions and 84 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ class LauncherApp : public App {
auto* display = lv_obj_get_display(parent);
auto horizontal_px = lv_display_get_horizontal_resolution(display);
auto vertical_px = lv_display_get_vertical_resolution(display);
bool is_landscape_display = horizontal_px > vertical_px;
bool is_landscape_display = horizontal_px >= vertical_px;
if (is_landscape_display) {
lv_obj_set_flex_flow(wrapper, LV_FLEX_FLOW_ROW);
} else {