Skip to content

Commit

Permalink
CODEC_ADC
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Nov 2, 2024
1 parent 4cbff2c commit 055e442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/examples-custom-boards/lyrat-mini/mic/mic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 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!
* Only CODEC_ADC will give a proper microphone input!
*/

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

auto cfg = i2s.defaultConfig(RX_MODE);
cfg.copyFrom(info);
// cfg.i2s_function = CODEC; // or CODEC_ADC
cfg.i2s_function = PinFunction::CODEC_ADC; // or CODEC_ADC
i2s.begin(cfg);

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

0 comments on commit 055e442

Please sign in to comment.