the manual says
https://micropython-docs-esp32.readthed ... conversionOn the ESP32, ADC functionality is available on Pins 32, 33, 34, 35, 36, 37, 38, and 39.
My device has more pins available for ADC: https://joy-it.net/files/files/Produkte ... 200320.pdf
How can I read pin 4? This way doesn't work:
Code: Select all
from machine import Pin, ADC
print(ADC(Pin(4)).read())
Code: Select all
%Run pin4read.py
Traceback (most recent call last):
File "/home/pin4read.py", line 2, in <module>
ValueError: invalid Pin for ADC