Here is the code
int green = 12;
int red1 = 11;
int red2 = 10;
int t = 1000;
void setup() {
pinMode(green, OUTPUT);
pinMode(red1, OUTPUT);
pinMode(red2, OUTPUT);
}
void loop() {
digitalWrite(red1, HIGH);
digitalWrite(red2, HIGH);
digitalWrite(green, LOW);
delay(t);
digitalWrite(red1, LOW);
digitalWrite(red2, LOW);
digitalWrite(green, HIGH);
delay(t);
}
No comments:
Post a Comment