Loops
int green_LED = 8;
int yellow_LED = 12;
void setup() {
pinMode ( green_LED, OUTPUT);
pinMode ( yellow_LED, OUTPUT);
}
void loop() {
for (int i = 0; i < 4; i++)
{ digitalWrite(green_LED, HIGH);
delay(500);
digitalWrite(green_LED, LOW);
delay(500);
}
int j = 0;
while (j < 3)
{ digitalWrite(yellow_LED, HIGH);
delay(500);
digitalWrite(yellow_LED, LOW);
delay(500);
j++;
}
}
Comments
Post a Comment