Description: LED sequencer casing with quantity of 6.
Download Link: http://www.mediafire.com/?7x9bk3dp1k7as17
Code:
Code:
const int anode = 9;//LED 1 Pin
const int anode2 = 8;//LED 2 Pin
const int anode3 = 6;//LED 3 Pin
const int anode4 = 4;//LED 4 Pin
const int anode5 = 3;//LED 5 Pin
const int anode6 = 2;//LED 6 Pin
const int cathode = 12;//Cathode for LED Pins
int ON = HIGH;
long previousMillis = 0; 
int OFF = LOW;
int ledA = LOW;
int ledB = LOW;
int ledC = LOW;
int ledD = LOW;
int ledE = LOW;
int ledF = LOW;
long delayT = 500;  

void setup()
{
  pinMode(anode, OUTPUT);
  pinMode(anode2, OUTPUT);
  pinMode(anode3, OUTPUT);
  pinMode(anode4, OUTPUT);
  pinMode(anode5, OUTPUT);
  pinMode(anode6, OUTPUT);
  pinMode(cathode, OUTPUT);
}

void loop()  
{
  unsigned long currentMillis = millis();  
  if(currentMillis - previousMillis > delayT)
  {
    previousMillis = currentMillis;  
    if( ledA == OFF && ledB == OFF && ledC == OFF && ledD == OFF && ledE == OFF && ledF == OFF || ledA == OFF && ledB == OFF && ledC == OFF && ledD == OFF && ledE == OFF && ledF == ON )
    {
      ledA = ON;
      ledB = OFF;
      ledC = OFF;
      ledD = OFF;
      ledE = OFF;
      ledF = OFF;
    }
    else if( ledA == ON && ledB == OFF && ledC == OFF && ledD == OFF && ledE == OFF && ledF == OFF )
    {
      ledA = OFF;
      ledB = ON;
      ledC = OFF;
      ledD = OFF;
      ledE = OFF;
      ledF = OFF;
    }
    else if( ledA == OFF && ledB == ON && ledC == OFF && ledD == OFF && ledE == OFF && ledF == OFF )
    {
      ledA = OFF;
      ledB = OFF;
      ledC = ON;
      ledD = OFF;
      ledE = OFF;
      ledF = OFF;
    }
    else if( ledA == OFF && ledB == OFF && ledC == ON && ledD == OFF && ledE == OFF && ledF == OFF )
    {
      ledA = OFF;
      ledB = OFF;
      ledC = OFF;
      ledD = ON;
      ledE = OFF;
      ledF = OFF;
    }
    else if( ledA == OFF && ledB == OFF && ledC == OFF && ledD == ON && ledE == OFF && ledF == OFF )
    {
      ledA = OFF;
      ledB = OFF;
      ledC = OFF;
      ledD = OFF;
      ledE = ON;
      ledF = OFF;
    }
    else if( ledA == OFF && ledB == OFF && ledC == OFF && ledD == OFF && ledE == ON && ledF == OFF )
    {
      ledA = OFF;
      ledB = OFF;
      ledC = OFF;
      ledD = OFF;
      ledE = OFF;
      ledF = ON;
    }
    
    digitalWrite(anode, ledA);
    digitalWrite(anode2, ledB);
    digitalWrite(anode3, ledC);
    digitalWrite(anode4, ledD);
    digitalWrite(anode5, ledE);
    digitalWrite(anode6, ledF);
    digitalWrite(cathode, LOW);  
  }
}
Proof Video