I am very excited about the possibilities of Arduino, so I am happy to play around with it. For the beginning we were supposed to figure out a small code to make LED blinking pattern, but I decided, that it is too simple and what if I want to create a pattern using few LEDs.

So here is the result:

And here is the code:

//Flowing LED Lights
void setup() {
for(int thisPin = lowestPin; thisPin <= highestPin; thisPin++) {
pinMode(thisPin, OUTPUT);}
}
/****************************************/
void loop() {
for(int thisPin = lowestPin; thisPin <= highestPin; thisPin++) {
digitalWrite(thisPin, HIGH);
delay(100);
}
for(int thisPin = highestPin; thisPin>=lowestPin; thisPin–) {
digitalWrite(thisPin, LOW);
delay(100);
}
for(int thisPin = highestPin; thisPin>=lowestPin; thisPin–) {
digitalWrite(thisPin, HIGH);
delay(100);
}
for(int thisPin = lowestPin; thisPin <= highestPin; thisPin++) {
digitalWrite(thisPin, LOW);
delay(100);
}
}