I just downloaded the latest firmware for the esp32/GENERIC from https://micropython.org/resources/firmw ... -v1.18.bin
I'm trying to run the following ADC example from the docs (https://docs.micropython.org/en/latest/ ... conversion)
Code: Select all
from machine import ADC
adc = ADC(pin) # create an ADC object acting on a pin
val = adc.read_u16() # read a raw analog value in the range 0-65535
val = adc.read_uv() # read an analog value in microvolts
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'ADC' object has no attribute 'read_uv'
What am I missing?
Thank you.