Add touch buttons for speaker toggle and music playback.

Enable SoftSPI touch, replace auto beeps with Speaker ON/OFF and Play Music controls, and document usage.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-17 17:36:54 +08:00
parent 82e1ace24f
commit a7a7685fc9
11 changed files with 385 additions and 174 deletions

View File

@@ -1,11 +1,16 @@
# Changelog
## 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).
- Boot: 3 beeps + short melody; then beep every 12s.
- LVGL row `Speaker` shows last audio status.
- Docs: README speaker section.
- (Superseded by touch control above.)
## 2026-10-17 — Initial