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.
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.