Skip to content

Commit cd5494f

Browse files
committed
AR pin config: SCK == 1 --> PDM microphone
1 parent 5ab1b14 commit cd5494f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

usermods/audioreactive/audio_reactive.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,11 @@ class AudioReactive : public Usermod {
11211121
delay(100); // Give that poor microphone some time to setup.
11221122

11231123
useBandPassFilter = false;
1124+
1125+
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
1126+
if ((i2sckPin == I2S_PIN_NO_CHANGE) && (i2ssdPin >= 0) && (i2swsPin >= 0) && ((dmType == 1) || (dmType == 4)) ) dmType = 5; // dummy user support: SCK == -1 --means--> PDM microphone
1127+
#endif
1128+
11241129
switch (dmType) {
11251130
#if defined(CONFIG_IDF_TARGET_ESP32S2) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S3)
11261131
// stub cases for not-yet-supported I2S modes on other ESP32 chips

0 commit comments

Comments
 (0)