File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
examples/examples-custom-boards/lyrat-mini/mic Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
2
+ /* *
3
+ * The microphone seems to be attached to 2 different i2s ports. In addition to the
4
+ * ES8311, the ES7243 is also started.
5
+ * The I2S pins can be selected via cfg.i2s_function: CODEC uses the ES8311 I2S pins
6
+ * and CODEC_ADC uses the ES7243 I2S pins; By default the CODEC value is used.
7
+ *
8
+ * Unfortunatly neither setting will give a proper microphone input!
9
+ */
2
10
3
11
#include " AudioTools.h"
4
12
#include " AudioTools/AudioLibs/AudioBoardStream.h"
5
13
6
- AudioInfo info (44100 , 1 , 16 );
14
+ AudioInfo info (44100 , 2 , 16 );
7
15
AudioBoardStream i2s (LyratMini); // Access I2S as stream
8
16
CsvOutput<int16_t > csvStream (Serial);
9
17
StreamCopy copier (csvStream, i2s); // copy i2s to csvStream
10
18
11
19
// Arduino Setup
12
20
void setup (void ) {
13
21
Serial.begin (115200 );
14
- AudioToolsLogger.begin (Serial, AudioToolsLogLevel::Warning);
22
+ // Display details what is going on
23
+ AudioToolsLogger.begin (Serial, AudioToolsLogLevel::Info);
24
+ AudioDriverLogger.begin (Serial, AudioDriverLogLevel::Info);
15
25
16
26
auto cfg = i2s.defaultConfig (RX_MODE);
17
27
cfg.copyFrom (info);
You can’t perform that action at this time.
0 commit comments