style 💎: Update I2S pin definitions for INMP441
Updated pin definitions to use SD pins for data input, bit clock, and left-right clock. Also updated noise threshold value.
This commit is contained in:
19
src/config.h
19
src/config.h
@@ -5,15 +5,22 @@
|
||||
#include <Arduino.h>
|
||||
|
||||
// Pin Definitions
|
||||
#define I2S_DATA_IN_PIN 41 // Data input pin for INMP441
|
||||
#define I2S_BCLK_PIN 42 // Bit clock pin
|
||||
#define I2S_LRCLK_PIN 40 // Left-Right clock pin
|
||||
#define I2S_DATA_IN_PIN 10 // Data input pin for INMP441 (SD)
|
||||
#define I2S_BCLK_PIN 8 // Bit clock pin (SCK)
|
||||
#define I2S_LRCLK_PIN 9 // Left-Right clock pin (WS)
|
||||
// L/R (Left/Right Select) connect to GND for Left channel, VDD for right channel
|
||||
|
||||
// I2S Configuration
|
||||
#define I2S_PORT I2S_NUM_0
|
||||
#define DMA_BUF_COUNT 8
|
||||
#define DMA_BUF_LEN 64
|
||||
|
||||
// Audio Configuration
|
||||
#define SAMPLES 1024 // Must be a power of 2
|
||||
#define SAMPLING_FREQUENCY 16000
|
||||
#define MAX_RETRIES 3
|
||||
#define NOISE_THRESHOLD 50
|
||||
// #define NOISE_THRESHOLD 50
|
||||
#define NOISE_THRESHOLD 750000
|
||||
|
||||
// BLE Configuration
|
||||
#define BLE_DEVICE_NAME "ESP32 MIDI Device"
|
||||
@@ -27,10 +34,6 @@
|
||||
// Watchdog Configuration
|
||||
#define WDT_TIMEOUT 10000 // Watchdog timeout in milliseconds
|
||||
|
||||
// I2S Configuration
|
||||
#define I2S_PORT I2S_NUM_0
|
||||
#define DMA_BUF_COUNT 8
|
||||
#define DMA_BUF_LEN 64
|
||||
|
||||
// Flash Configuration
|
||||
#define PROGRAM_PARTITION_SIZE 1310720 // Default app partition size ~1.3MB
|
||||
|
||||
Reference in New Issue
Block a user