I've got the ESP32-WROOM-32 with esp32-20210418-v1.15.bin
I'm using a development board with this pinout
I'm trying to use the ADC library described in the documentation
Pins 32-39 correspond to 8 ADC channels. On my development board there appears to be 16 ADC inputs.ADC (analog to digital conversion)
On the ESP32 ADC functionality is available on Pins 32-39.
Code: Select all
from machine import ADC
adc = ADC(Pin(32)) # create ADC object on ADC pin
adc.read() # read value, 0-4095 across voltage range 0.0v - 1.0v
What numbering scheme is used in the statement "adc = ADC(Pin(32)) " ?