esp32 ADC2 reading back settings

David_1
Posts: 7
Joined: Sat May 15, 2021 10:51 am

esp32 ADC2 reading back settings

Postby David_1 » Thu Jul 08, 2021 11:31 am

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

Who is online

Users browsing this forum: No registered users and 140 guests