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