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) {
Serial.println("graenn");
delay(250);
}
if(digitalRead(8) == LOW) {
Serial.println("blar");
delay(250);
}
if(digitalRead(9) == LOW) {
Serial.println("raudur");
delay(250);
}
}