Analog read pin on the 7" display ESP32 board
Completely new to this display, can someone explain to me how to wire an analog input (0-3 volt)? And is there a simple (demo) sketch for output to the serial monitor?
Completely new to this display, can someone explain to me how to wire an analog input (0-3 volt)? And is there a simple (demo) sketch for output to the serial monitor?
Comments
Hello @HansTis ,
To read analog value, you need an ADC pin, but there is no available ADC pin. However, if you don't need to use a speaker, you can use GPIO17 pin as ADC input pin to read analog value.
Use the following code:
#define A_pin 17
Thanks for your advice!