#pragma once /* CYD + INMP441 record pin truth — see ../CYD_PROJECT_GUIDE.md */ #if defined(CYD_BOARD_3248S035) /* 3.5C ESP32-3248S035C: BL=27; free peripheral pair is 22+21 */ #define TFT_BL_PIN 27 #define I2S_WS_PIN 22 #define I2S_SCK_PIN 21 #define I2S_SD_PIN 35 #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 * 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 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 #define CYD_TOUCH_CLK 25 #define CYD_TOUCH_CS 33 #endif /* On-board microSD (VSPI) + speaker amp (DAC2 only — never GPIO25) */ #define SD_MISO 19 #define SD_MOSI 23 #define SD_SCK 18 #define SD_CS 5 #define SPEAKER_PIN 26