From 4cbff2c73f2c27ec4f8449052ca92a70a2add1fc Mon Sep 17 00:00:00 2001 From: pschatzmann Date: Sat, 2 Nov 2024 21:38:56 +0100 Subject: [PATCH] mic.ino --- .../examples-custom-boards/lyrat-mini/mic/mic.ino | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/examples/examples-custom-boards/lyrat-mini/mic/mic.ino b/examples/examples-custom-boards/lyrat-mini/mic/mic.ino index 8819d56c7..5e5f77903 100644 --- a/examples/examples-custom-boards/lyrat-mini/mic/mic.ino +++ b/examples/examples-custom-boards/lyrat-mini/mic/mic.ino @@ -1,9 +1,17 @@ +/** + * The microphone seems to be attached to 2 different i2s ports. In addition to the + * ES8311, the ES7243 is also started. + * The I2S pins can be selected via cfg.i2s_function: CODEC uses the ES8311 I2S pins + * and CODEC_ADC uses the ES7243 I2S pins; By default the CODEC value is used. + * + * Unfortunatly neither setting will give a proper microphone input! + */ #include "AudioTools.h" #include "AudioTools/AudioLibs/AudioBoardStream.h" -AudioInfo info(44100, 1, 16); +AudioInfo info(44100, 2, 16); AudioBoardStream i2s(LyratMini); // Access I2S as stream CsvOutput csvStream(Serial); StreamCopy copier(csvStream, i2s); // copy i2s to csvStream @@ -11,7 +19,9 @@ StreamCopy copier(csvStream, i2s); // copy i2s to csvStream // Arduino Setup void setup(void) { Serial.begin(115200); - AudioToolsLogger.begin(Serial, AudioToolsLogLevel::Warning); + // Display details what is going on + AudioToolsLogger.begin(Serial, AudioToolsLogLevel::Info); + AudioDriverLogger.begin(Serial, AudioDriverLogLevel::Info); auto cfg = i2s.defaultConfig(RX_MODE); cfg.copyFrom(info);