From df3e9edb6d5865b9e2613a4fede8bd8d0d2638f9 Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Mon, 25 Dec 2023 06:24:59 -0600 Subject: [PATCH] Fix for NRF52 example --- examples/NRF52_PDM_PWMTest/NRF52_PDM_PWMTest.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/NRF52_PDM_PWMTest/NRF52_PDM_PWMTest.ino b/examples/NRF52_PDM_PWMTest/NRF52_PDM_PWMTest.ino index a9b1a2b..34dd83e 100644 --- a/examples/NRF52_PDM_PWMTest/NRF52_PDM_PWMTest.ino +++ b/examples/NRF52_PDM_PWMTest/NRF52_PDM_PWMTest.ino @@ -20,5 +20,5 @@ void loop() { for (int i = 0; i < 320; i++) { // Copy them into the DAC Buffer and change from signed to unsigned ( + 0x8000) aaAudio.dacBuffer16[i] = (uint16_t)(aaAudio.adcBuffer16[i] + 0x8000); } - aaAudio.feedDAC(320); // Feed the DAC with the ADC data + aaAudio.feedDAC(0,320); // Feed the DAC with the ADC data }