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

@@ -1,12 +1,14 @@
# Changelog
## 2026-10-17 — Touch = draw coords (CYD LVGL9 official)
## 2026-10-17 — Restore landscape + RNT touch map
- Root cause: `LV_DISPLAY_ROTATION_270` double-transforms touch vs TFT_eSPI
(lvgl#7841 / CYD community).
- Fix per witnessmenow LVGL9 example: create display 320x240, rotation 0;
SoftSPI `setRotation(3)` map straight into the same 320x240 space.
- Red touch cursor follows reported point for visual check.
- Revert create(320x240) — caused 花屏; keep 240x320 + ROTATION_270 landscape.
- Touch = Random Nerd Tutorials recipe: SoftSPI rot2, map to 240x320, feed LVGL
directly (no extra inverse). Red cursor shows estimated UI point.
## 2026-10-17 — Touch = draw coords (CYD LVGL9 official) [reverted]
- create(320x240) without LVGL rot caused 花屏 on this panel; superseded.
## 2026-10-17 — SoftSPI touch + LVGL inverse (fix mux)