// miniPOVcolor *common anode*
// 



int ledPin1 = 13;
int ledPin2 = 12;
int ledPin3 = 11;
int ledPin4 = 10;
int ledPin5 = 9;
int ledPin6 = 8;
int ledPin7 = 7;
int colorPinRED = 6;
int colorPinGREEN = 5;
int colorPinBLUE = 4;
int startPin = 5;
int d=2;

void setup() 
{ 

pinMode(ledPin1, OUTPUT);
pinMode(ledPin2, OUTPUT);
pinMode(ledPin3, OUTPUT);
pinMode(ledPin4, OUTPUT);
pinMode(ledPin5, OUTPUT);
pinMode(ledPin6, OUTPUT);
pinMode(ledPin7, OUTPUT);

pinMode(colorPinRED, OUTPUT);
pinMode(colorPinGREEN, OUTPUT);
pinMode(colorPinBLUE, OUTPUT);
pinMode(startPin, INPUT);
} 

void loop()
{
  
int val = analogRead(startPin); //Read Start Button
while (val<200)  //Triggerpoint  
{
  
//SMILE
digitalWrite(colorPinRED, LOW); digitalWrite(colorPinGREEN, LOW); digitalWrite(colorPinBLUE, LOW);//set color WHITE
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
// H
digitalWrite(colorPinRED, HIGH); digitalWrite(colorPinGREEN, HIGH); digitalWrite(colorPinBLUE, LOW);//set color BLUE
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
//E
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
//L
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
//L
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
//O
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
//I
digitalWrite(colorPinRED, LOW); digitalWrite(colorPinGREEN, HIGH); digitalWrite(colorPinBLUE, HIGH);//set color RED
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
//HEART
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
//Y
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
//O
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
//U
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, HIGH);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
//SMILE
digitalWrite(colorPinRED, LOW); digitalWrite(colorPinGREEN, LOW); digitalWrite(colorPinBLUE, LOW);//set color WHITE
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, HIGH);delay(d);
digitalWrite(ledPin1, HIGH);digitalWrite(ledPin2, HIGH);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, HIGH);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, HIGH);digitalWrite(ledPin5, HIGH);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
digitalWrite(ledPin1, LOW);digitalWrite(ledPin2, LOW);digitalWrite(ledPin3, LOW);digitalWrite(ledPin4, LOW);digitalWrite(ledPin5, LOW);digitalWrite(ledPin6, LOW);digitalWrite(ledPin7, LOW);delay(d);
val = analogRead(startPin); //Read Start Button
while (val>800)  //Trigger point
{}


}

}