Restore landscape display and use RNT SoftSPI touch map.

Revert 320x240 create that garbled the panel; map touch to 240x320 like Random Nerd Tutorials.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-17 18:18:28 +08:00
parent 1381c221d9
commit 01c52661e4
6 changed files with 41 additions and 31 deletions

View File

@@ -21,8 +21,8 @@
#define CYD_TOUCH_CLK 25
#define CYD_TOUCH_CS 33
// 横屏 UI(与 witnessmenow CYD LVGL9 官方例程一致:直接 320x240,不用 LVGL 二次旋转)
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
#define UI_HOR_RES SCREEN_WIDTH
#define UI_VER_RES SCREEN_HEIGHT
// 与 Random Nerd Tutorials / temperature 一致:物理竖屏 + LVGL 270 得横屏
#define SCREEN_WIDTH 240
#define SCREEN_HEIGHT 320
#define UI_HOR_RES 320
#define UI_VER_RES 240