void setup() {
pinMode(27, INPUT_PULLUP);
pinMode(26, INPUT_PULLUP);
pinMode(25, INPUT_PULLUP);
pinMode(19, OUTPUT);
pinMode(18, OUTPUT);
pinMode(5, OUTPUT);
}
void loop() {
if (digitalRead(27) == 0) {
digitalWrite(19, 1);
} else {
digitalWrite(19, 0);
}
if (digitalRead(26) == 0) {
digitalWrite(18, 1);
} else {
digitalWrite(18, 0);
}
if (digitalRead(25) == 0) {
digitalWrite(5, 1);
} else {
digitalWrite(5, 0);
}
}