Open Candas1 opened 1 year ago
This is also wrong. Pinmode should be set only if it's not an internal ADC channel, otherwise fails (in default branch of the switch).
I experimented with VREF but it was messing up my other readings. If I find a solution to this I can propose a PR for all the issues I mentioned if it helps.
Hi,
If an internal ADC Channel like temperature or voltage reference is requested to analogRead (I haven't tested this yet), a higher sampling time (ADC_SAMPLETIME_239POINT5 ?) could be used here.