int np = 2;
int sp = 0;
int rnp;
int rsp;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32-S3!");
pinMode(np, INPUT);
pinMode(sp, INPUT);
rnp = analogRead(np);
rsp = analogRead(sp);
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
Serial.print("slide potentiometer = ");
Serial.println(rsp);
Serial.print("normal potiometer = ");
Serial.println(rnp);
}
Loading
esp32-s3-devkitc-1
esp32-s3-devkitc-1