Add INMP441 sound-level meter for CYD 2.8/3.5.

I2S mic on WS22/SCK27(SD35) with LVGL dB gauge, peak/min-max and firmware pack.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-27 20:49:12 +08:00
commit 59b85fb7dc
23 changed files with 1409 additions and 0 deletions

21
include/pins.h Normal file
View File

@@ -0,0 +1,21 @@
#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