how to set the adc prescale factor.
Posted: Tue Apr 11, 2017 4:53 am
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
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. http://maxembedded.com/2011/06/the-adc-of-the-avr/) but I can't find any information on how to do this on the esp32.
Code: Select all
if (currentMillis - previousMillis >= interval)