void setup() {
pinMode (7, INPUT);
pinMode (5, INPUT);
}
void loop() {
digitalRead(7);
digitalRead(6);
if (digitalRead(7) == HIGH) {
digitalWrite(5, HIGH); // turn the LED on (HIGH is the voltage level)
delay(10); // wait for a second
digitalWrite(5, LOW); // turn the LED off by making the voltage LOW
delay(10);
};
if (digitalRead(6) == HIGH) {
digitalWrite(4, HIGH); // turn the LED on (HIGH is the voltage level)
delay(10); // wait for a second
digitalWrite(4, LOW); // turn the LED off by making the voltage LOW
delay(10);
};
}