int r = 3;
int g = 5;
int b = 6;
int knopf;
void setup() {
// put your setup code here, to run once:
pinMode(3, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
while (digitalRead(A0) == 0) {}
digitalWrite(r, HIGH);
digitalWrite(g, LOW);
digitalWrite(b, LOW);
while (digitalRead(A0) == 0) {}
digitalWrite(r, HIGH);
digitalWrite(g, HIGH); //gelb
digitalWrite(b, LOW);
while (digitalRead(A0) == 0) {}
digitalWrite(r, LOW);
digitalWrite(g, HIGH);
digitalWrite(b, LOW);
while (digitalRead(A0) == 0) {}
digitalWrite(r, HIGH);
digitalWrite(g, HIGH);
digitalWrite(b, LOW);
}