From f2b1be81b9561e5beaaf42c16559915d0a3aeb3e Mon Sep 17 00:00:00 2001 From: vgoodwinv <46117260+vgoodwinv@users.noreply.github.com> Date: Mon, 31 Dec 2018 17:28:59 -0500 Subject: [PATCH] changed frequency(2.0) to sample_rate(3.0) --- Sensor_Plotting_With_Mu_CircuitPython/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sensor_Plotting_With_Mu_CircuitPython/audio.py b/Sensor_Plotting_With_Mu_CircuitPython/audio.py index b9c7f483..b7f957d9 100644 --- a/Sensor_Plotting_With_Mu_CircuitPython/audio.py +++ b/Sensor_Plotting_With_Mu_CircuitPython/audio.py @@ -23,7 +23,7 @@ def normalized_rms(values): mic = audiobusio.PDMIn( board.MICROPHONE_CLOCK, board.MICROPHONE_DATA, - frequency=16000, + sample_rate=16000, bit_depth=16 ) samples = array.array('H', [0] * 160)