/*
Josh Fender
This is an example that shows how to create lists then use for loops to
cycle through them.
*/
const int LED = 9;
const int LENGTHS[] = {1000, 2000, 3000, 4000, 5000};
void setup() {
pinMode(LED, OUTPUT);
delay(3000);
}
void loop() {
for (int count = 0; count < 5; count++){
digitalWrite(LED, HIGH);
delay(LENGTHS[count]);
digitalWrite(LED, LOW);
delay((LENGTHS[count]) / 2);
}
}