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:
@@ -14,5 +14,17 @@
|
||||
// 板载 SC8002B 功放 → P4 喇叭座(DAC2)
|
||||
#define SPEAKER_PIN 26
|
||||
|
||||
// 触摸 XPT2046(SoftSPI,避开 VSPI)
|
||||
#define TOUCH_IRQ 36
|
||||
#define TOUCH_MOSI 32
|
||||
#define TOUCH_MISO 39
|
||||
#define TOUCH_CLK 25
|
||||
#define TOUCH_CS 33
|
||||
|
||||
// 物理竖屏分辨率(TFT 驱动)
|
||||
#define SCREEN_WIDTH 240
|
||||
#define SCREEN_HEIGHT 320
|
||||
|
||||
// 横屏逻辑分辨率(LV_DISPLAY_ROTATION_270)
|
||||
#define UI_HOR_RES 320
|
||||
#define UI_VER_RES 240
|
||||
|
||||
Reference in New Issue
Block a user