Page 1 of 1

how to set the adc prescale factor.

Posted: Tue Apr 11, 2017 4:53 am
by tjwpfr
I'm new to working outside of the standard arduino environment but I need to be able sample at a consistent known rate that is slower than the esp32's default rate (i think i clocked it in at 100,000 hz or so). rather than messing around with

Code: Select all

if (currentMillis - previousMillis >= interval)
statements i was hoping i could do this by just changing the prescaler factor, there is heaps of information on how to do this on avr micro controllers (eg. but I can't find any information on how to do this on the esp32.