- Added a new header file `AudioLevelTracker.h` to track audio levels with a history of up to 3 seconds and a maximum range limit. - `Config.h` has been added with new serial and I2S configurations. The aim is to configure these peripherals for audio processing. - Added new header file `I2SConfig.h` with setup functions for initializing and reading from I2S interface. - The `AudioLevelTracker.cpp` file has been updated to include functionality for tracking the maximum audio level over a specified duration. - Initial setup for I2S communication with a microphone. - Updated `Arduino` code with improved I2S configuration and dynamic range limiting.
9 lines
176 B
C
9 lines
176 B
C
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
#include <driver/i2s.h>
|
|
#include "Config.h"
|
|
|
|
// I2S setup functions
|
|
void initI2S();
|
|
void readI2SSamples(int32_t* samples, size_t* bytesRead); |