diff --git a/notes.ods b/notes.ods index a121c2a..21a623f 100644 Binary files a/notes.ods and b/notes.ods differ diff --git a/src/config.h b/src/config.h index 2317a16..384340b 100644 --- a/src/config.h +++ b/src/config.h @@ -5,15 +5,22 @@ #include // 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