void setup() {
Serial.begin(9600);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(7, INPUT_PULLUP);
pinMode(8, INPUT_PULLUP);
pinMode(9, INPUT_PULLUP);
digitalWrite(11, LOW);
digitalWrite(12, LOW);
}
void loop() {
if(digitalRead(7) == LOW) {
digitalWrite(12, HIGH);
digitalWrite(11, LOW);
delay(1000);
digitalWrite(11, HIGH);
}
if(digitalRead(8) == LOW) {
digitalWrite(12, LOW);
digitalWrite(11, HIGH);
delay(1000);
digitalWrite(12, HIGH);
}
if(digitalRead(9) == LOW) {
digitalWrite(12, LOW);
digitalWrite(11, LOW);
}
}