void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(25, OUTPUT);
pinMode(18, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int button = digitalRead(18);
if (button==LOW){
digitalWrite(25, LOW);
}
else{
digitalWrite(25, HIGH);
}
delay(10); // this speeds up the simulation
}