const int ledred = 6;
const int ledblue = 9;
void setup()
{
pinMode(ledred, OUTPUT); //pinMODe aud OUTPUT setzen
pinMode(ledblue, OUTPUT);
}
void loop()
{
digitalWrite(ledred, HIGH); //LED einschalten
digitalWrite(ledblue, LOW);
delay(500); // 300 millisekunden warten
digitalWrite(ledred, LOW); // LED ausschalten
digitalWrite(ledblue, HIGH);
delay(500); // 300 millisekunden warten
}