Page 1 of 1

esp32 ADC2 reading back settings

Posted: Thu Jul 08, 2021 11:31 am
by David_1
analogSetWidth(12);
//analogSetAttenuation(ADC_11db);
//adcAttachPin(13);
//analogSetClockDiv(255); // 1338mS
//analogSetCycles(1);
//analogSetAttenuation(ADC_11db);
analogReadResolution(12);
analogSetWidth(12);
Hi all
not really trying to show code but..
if you set up your adc1 and your adc2 both to 12 bits !
can you then read back what the setting are to show you have handled the differences correctly, Not that bothered about the wifi problem, More how can I fact check in code my other code has set the registers correctly, Before I move on the the next problem of them not seeming to measure the correct values ?

Thankyou for anything you can suggest I am totally at a loss now.
David