const int potPin=A15;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(potPin, INPUT);
analogReadResolution(9);
}
void loop() {
// put your main code here, to run repeatedly:
int potVal=analogRead(potPin);
Serial.println(potVal);
}
Loading
esp32-devkit-c-v4
esp32-devkit-c-v4