void setup() {
// put your setup code here, to run once:
pinMode(23, INPUT_PULLDOWN);
pinMode(22, INPUT_PULLDOWN);
pinMode(4, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
if (digitalRead(23) == HIGH){
digitalWrite(4, HIGH);
}
if (digitalRead(22) == HIGH){
digitalWrite(4, LOW);
}
}