I2S mic on WS22/SCK27(SD35) with LVGL dB gauge, peak/min-max and firmware pack. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
585 B
C
22 lines
585 B
C
#pragma once
|
|
|
|
/* CYD + INMP441 I2S pin truth source — 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
|
|
#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
|
|
#endif
|