Skip to content

Commit

Permalink
Revert "Another modification for NRF52 example"
Browse files Browse the repository at this point in the history
This reverts commit d1f6654.
  • Loading branch information
TMRh20 committed Dec 25, 2023
1 parent d1f6654 commit 1be506c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/NRF52_PDM_PWMTest/NRF52_PDM_PWMTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void loop() {

aaAudio.getADC(320); // Get 320 Samples from the ADC
for (int i = 0; i < 320; i++) { // Copy them into the DAC Buffer and change from signed to unsigned ( + 0x8000)
aaAudio.dacBuffer16[i] = aaAudio.adcBuffer16[i];
aaAudio.dacBuffer16[i] = (uint16_t)(aaAudio.adcBuffer16[i] + 0x8000);
}
aaAudio.feedDAC(0,320); // Feed the DAC with the ADC data
}

0 comments on commit 1be506c

Please sign in to comment.