Files
inmp441recondtest/include/pins.h
DESKTOP-PUHFO60\dsx2016 ddff48d05b Add INMP441 WAV recorder for CYD 2.8/3.5.
Record 16 kHz mono PCM to microSD /rec, with level meter and DAC2 playback.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-27 21:16:13 +08:00

38 lines
994 B
C

#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 480
#define SCREEN_HEIGHT 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 */
#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 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