const int out_pin = 34;
const int input_pin = 35;
const int adc_pin = 32;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(out_pin, OUTPUT);
pinMode(input_pin, INPUT_PULLUP);
Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
if (digitalRead(input_pin))
digitalWrite(out_pin, HIGH);
else
digitalWrite(out_pin, LOW);
Serial.println(analogRead(adc_pin));
delay(1000); // this speeds up the simulation
}