Restore SoftSPI touch and exclusive VSPI for SD.

HW SPI remux froze touch at (0,4095) and broke SD; keep temperature UI map plus LVGL inverse feed.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-17 18:10:45 +08:00
parent 156d9cf583
commit aa08b23fca
9 changed files with 82 additions and 81 deletions

View File

@@ -1,8 +0,0 @@
#pragma once
#include <SPI.h>
// CYD:触摸与 SD 共用 VSPI,按需切换引脚
SPIClass &cyd_vspi();
void cyd_vspi_select_touch();
void cyd_vspi_select_sd();

View File

@@ -14,7 +14,7 @@
// 板载 SC8002B 功放 → P4 喇叭座(DAC2)
#define SPEAKER_PIN 26
// 触摸 XPT2046(SoftSPI,避开 VSPI;勿用 TOUCH_CS,会与 TFT_eSPI 冲突)
// 触摸 XPT2046(SoftSPI 专用脚,VSPI 留给 SD;勿用 TOUCH_CS,会与 TFT_eSPI 冲突)
#define CYD_TOUCH_IRQ 36
#define CYD_TOUCH_MOSI 32
#define CYD_TOUCH_MISO 39