Files
tftest/CHANGELOG.md
DESKTOP-PUHFO60\dsx2016 156d9cf583 Align touch with temperature XPT2046 driver and LVGL inverse map.
Mux VSPI between SD and touch; map like climate UI then undo ROTATION_270 so buttons hit.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 18:07:18 +08:00

53 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Changelog
## 2026-10-17 — Touch = temperature driver + LVGL inverse
- Use `XPT2046_Touchscreen` + VSPI pin mux (touch/SD), same as climate project.
- Map with temperature formula to UI 320x240, then invert LVGL ROTATION_270
so buttons align with fingers.
- On-screen `Touch L:x,y` shows intended UI coordinates.
## 2026-10-17 — Touch calib from COM3 logs
- Logged live `Touch phys/logic` on COM3; inverted physical X so bottom matches UI.
- On-screen `Touch L:x,y` debug; larger 150×60 buttons.
- Verified Speaker ON/OFF via serial during capture.
## 2026-10-17 — Fix touch Y (buttons dead zone)
- Root cause: feeding already-landscape 320x240 points while LVGL also applies
ROTATION_270 (double transform) → only upper ~1/3 hit-tested correctly.
- Fix: report physical 240x320 coords; let LVGL rotate (matches `lv_indev.c`).
## 2026-10-17 — Restore LVGL touch
- SoftSPI + LVGL `lv_indev` (with `lv_indev_set_display`).
- Larger clickable speaker/play buttons.
## 2026-10-17 — Fix touch offset
- SoftSPI touch now uses the same rotation=2 transform + map as `temperature`.
- (Pressure-only path was too strict; superseded by restore above.)
## 2026-10-17 — Prebuilt firmware folder
- Add `firmware/cyd/` with bin + `flash.ps1` / `flash.bat` (same pattern as temperature).
- Add `firmware/export_from_build.ps1` to refresh archived binaries after builds.
- Track `firmware/**/*.bin` in git; document flash-without-compile in README.
## 2026-10-17 — Touch speaker control + music
- SoftSPI XPT2046 touch (GPIO 32/39/25/33/36), coexists with SD.
- LVGL buttons: **Speaker ON/OFF**, **Play Music / Stop**.
- Non-blocking built-in melody (Twinkle Twinkle); no auto beeps.
- Docs updated.
## 2026-10-17 — Speaker audio test
- Add GPIO26 speaker path (onboard SC8002B amp / P4 connector).
- (Superseded by touch control above.)
## 2026-10-17 — Initial
- CYD TF/microSD mount (VSPI) + LVGL storage info UI.