Skip to content

Commit 055e442

Browse files
committed
CODEC_ADC
1 parent 4cbff2c commit 055e442

File tree

1 file changed

+2
-2
lines changed
  • examples/examples-custom-boards/lyrat-mini/mic

1 file changed

+2
-2
lines changed

examples/examples-custom-boards/lyrat-mini/mic/mic.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* The I2S pins can be selected via cfg.i2s_function: CODEC uses the ES8311 I2S pins
66
* and CODEC_ADC uses the ES7243 I2S pins; By default the CODEC value is used.
77
*
8-
* Unfortunatly neither setting will give a proper microphone input!
8+
* Only CODEC_ADC will give a proper microphone input!
99
*/
1010

1111
#include "AudioTools.h"
@@ -25,7 +25,7 @@ void setup(void) {
2525

2626
auto cfg = i2s.defaultConfig(RX_MODE);
2727
cfg.copyFrom(info);
28-
// cfg.i2s_function = CODEC; // or CODEC_ADC
28+
cfg.i2s_function = PinFunction::CODEC_ADC; // or CODEC_ADC
2929
i2s.begin(cfg);
3030

3131
// make sure that we have the correct number of channels set up

0 commit comments

Comments
 (0)