Skip to content

Commit 42cc302

Browse files
authored
enable bandpass filter for analog input
Analog input seems to sometime have a very strong negative DC offset, when the signal is not centered at 1.8V. The bandpass filter should help to reenter such "off limits" signals. See discussions in issue #10 .
1 parent 18d649a commit 42cc302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usermods/audioreactive/audio_reactive.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ class AudioReactive : public Usermod {
12841284
case 0:
12851285
default:
12861286
DEBUGSR_PRINTLN(F("AR: Analog Microphone (left channel only)."));
1287-
//useBandPassFilter = true;
1287+
useBandPassFilter = true;
12881288
audioSource = new I2SAdcSource(SAMPLE_RATE, BLOCK_SIZE);
12891289
delay(100);
12901290
if (audioSource) audioSource->initialize(audioPin);

0 commit comments

Comments
 (0)