const int ledPin=17;
const int boton1=32;
const int boton2=25;
bool estadoboton1=false;
bool estadoboton2=false;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(ledPin, OUTPUT);
pinMode(boton1, INPUT_PULLUP);
pinMode(boton2, INPUT_PULLUP);
digitalWrite(ledPin, LOW);
}
void loop() {
estadoboton1=digitalRead(boton1);
estadoboton2=digitalRead(boton2);
if (estadoboton1==LOW && estadoboton2==LOW){
digitalWrite(ledPin,HIGH);
}else{
digitalWrite(ledPin, LOW);
}
}