Fix touch vs SD VSPI clash; SoftSPI + BOOT/serial REC.

Recording verified via serial r; 2.8 touch no longer shares VSPI with microSD.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-27 21:42:37 +08:00
parent 76ca6189d5
commit 994d21c7fb
11 changed files with 192 additions and 98 deletions

View File

@@ -8,20 +8,25 @@
#define I2S_WS_PIN 22
#define I2S_SCK_PIN 21
#define I2S_SD_PIN 35
#define SCREEN_WIDTH 480
#define SCREEN_HEIGHT 320
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 480
#define UI_HOR_RES 480
#define UI_VER_RES 320
#define CYD_GT911_SDA 33
#define CYD_GT911_SCL 32
#define CYD_GT911_INT 21
#define CYD_GT911_RST 25
#else
/* 2.8 ESP32-2432S028R: BL=21; free peripheral pair is 22+27; SD on P3 IO35 */
/* 2.8 ESP32-2432S028R: BL=21; free peripheral pair is 22+27; SD on P3 IO35
* SCREEN_* = native panel; UI_* = landscape after LVGL ROTATION_270 */
#define TFT_BL_PIN 21
#define I2S_WS_PIN 22
#define I2S_SCK_PIN 27
#define I2S_SD_PIN 35
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
#define SCREEN_WIDTH 240
#define SCREEN_HEIGHT 320
#define UI_HOR_RES 320
#define UI_VER_RES 240
#define CYD_TOUCH_IRQ 36
#define CYD_TOUCH_MOSI 32
#define CYD_TOUCH_MISO 39

View File

@@ -7,3 +7,6 @@ void sd_deinit(void);
bool sd_ready(void);
uint64_t sd_free_bytes(void);
uint64_t sd_total_bytes(void);
/* VSPI is shared with 2.8" XPT2046 — reclaim before SD I/O after touch. */
void sd_reclaim_spi(void);