sensorium / Mozzi

sound synthesis library for Arduino
https://sensorium.github.io/Mozzi/
GNU Lesser General Public License v2.1
1.07k stars 186 forks source link

interrupt handler speed up and pin adjustment #150

Closed j-enns closed 2 years ago

j-enns commented 2 years ago

adcPinToChannelNum allows calling by GP or ADC numbering

running adc only once per call. saves the adc needing to be stopped and having the fifo drained by the interrupt handler. adc_fifo_drain waits for current conversion to complete, then drains fifo. maximum potential of 96 cycle savings.