the doc sucks. i'm playing around with this API as well. according to sample code, all parameters are in bytes , which means:
samples = bytes/ [bytes per sample] / channels
Search found 2 matches
- Thu Jul 10, 2025 9:19 am
- Forum: ESP-IDF
- Topic: Buffer size - ADC continuous mode
- Replies: 1
- Views: 115
- Sat Nov 09, 2024 2:26 am
- Forum: ESP-IDF
- Topic: Problem with sampling using ADC via DMA
- Replies: 11
- Views: 21077
Re: Problem with sampling using ADC via DMA
I'm doing FFT using adc & i2s, with sample rate 8K and 16K, the result is not correct. by setting sample rate to 44100, everything works fine.
for 16bits data, words swap is mandatory as well.
for 16bits data, words swap is mandatory as well.