Skip to content

Commit

Permalink
Fix nRF52_PDM_PWMTest example
Browse files Browse the repository at this point in the history
  • Loading branch information
TMRh20 committed Oct 22, 2024
1 parent 1717717 commit 1cb6996
Showing 1 changed file with 1 addition and 1 deletion.
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] = (uint16_t)(aaAudio.adcBuffer16[i] + 0x8000);
aaAudio.dacBuffer16[i] = (uint16_t)(aaAudio.adcBuffer16[i]);
}
aaAudio.feedDAC(0,320); // Feed the DAC with the ADC data
}

0 comments on commit 1cb6996

Please sign in to comment.