/*
Created by: Electronic Projects
Youtube channel: https://www.youtube.com/channel/UCAE_BN64jkkjfGJLSs21upg
Video: https://www.youtube.com/watch?v=MwyHrluYims
Arduino Sketch: https://drive.google.com/file/d/1IaATCW0txxdZsoiR9pByVVaBpULw1cHX/view
Date: Jan-03-18
*/
#define LED1 3
#define LED2 4
#define LED3 5
#define LED4 6
#define LED5 7
#define LED6 8
#define LED7 9
#define LED8 10
#define LED9 11
#define LED10 12
int buttonPin = 2;
const int patternCount = 30;
static unsigned long lastButtonTime = 0;
#define numLeds 10
int LED[] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
int red[] = {8, 9, 10, 11, 12};
int blue[] = {7, 6, 5, 4, 3};
void setup() {
for (int i = 0; i < numLeds; i++) {
pinMode(LED[i], OUTPUT);
}
pinMode(buttonPin, INPUT_PULLUP);
Serial.begin(9600);
}
void loop()
{
static int pattern = 0;
// If the button is down and the last time it went down was more than 1/10th second ago.
if (digitalRead(buttonPin) && (millis() - lastButtonTime) > 100) {
lastButtonTime = millis();
pattern = (pattern + 1) % patternCount;
}
switch (pattern) {
case 1:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
delay(50);
//*********************3 times***************************************
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
break;
case 2:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
delay(50);
//*********************3 times***************************************
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
break;
case 3:
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
//*********************3 times***************************************
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
break;
case 4:
digitalWrite(LED5, HIGH); // Turn the LED on
digitalWrite(LED6, HIGH); // Turn LED off
delay(150); // Wait 25 ms
digitalWrite(LED4, HIGH); // Turno LED1 on
digitalWrite(LED7, HIGH); // Turn LED1 off
delay(150); // Wait 25 ms
digitalWrite(LED3, HIGH); // Turn the LED on
digitalWrite(LED8, HIGH); // Turn LED off
delay(150); // Wait 25 ms
digitalWrite(LED2, HIGH); // Turno LED1 on
digitalWrite(LED9, HIGH); // Turn LED1 off
delay(150); // Wait 25 ms
digitalWrite(LED1, HIGH); // Turn the LED on
digitalWrite(LED10, HIGH); // Turn LED off
delay(150); // Wait 25 ms
digitalWrite(LED1, LOW); // Turn the LED on
digitalWrite(LED2, LOW); // Turn LED off
digitalWrite(LED3, LOW); // Turno LED1 on
digitalWrite(LED4, LOW); // Turn LED1 off
digitalWrite(LED5, LOW); // Turn the LED on
digitalWrite(LED6, LOW); // Turn LED off
digitalWrite(LED7, LOW); // Turno LED1 on
digitalWrite(LED8, LOW); // Turn LED1 off
digitalWrite(LED9, LOW); // Turn the LED on
digitalWrite(LED10, LOW); // Turn LED off
delay(150);
break;
case 5:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
//*********************3 times***************************************
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
delay(75);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
delay(75);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
delay(75);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
delay(75);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
delay(75);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
delay(75);
break;
case 6:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(75);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
//*********************3 times***************************************
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
//*********************3 times***************************************
break;
//****************************************************6. PROGRAM**************************************************************************
case 7:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
//*********************3 times***************************************
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
delay(50);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
delay(50);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
delay(50);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
delay(50);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
delay(50);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
break;
case 8:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
delay(50);
//********3 times*******
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
break;
case 9:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
delay(50);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
break;
case 10:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
break;
case 11:
digitalWrite(LED1, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED9, HIGH);
delay(75);
digitalWrite(LED1, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED9, LOW);
delay(75);
digitalWrite(LED1, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED9, HIGH);
delay(75);
digitalWrite(LED1, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED9, LOW);
delay(75);
digitalWrite(LED1, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED9, HIGH);
delay(75);
digitalWrite(LED1, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED9, LOW);
delay(75);
//*********************3 times***************************************
digitalWrite(LED2, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED10, HIGH);
delay(75);
digitalWrite(LED2, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED10, LOW);
delay(75);
digitalWrite(LED2, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED10, HIGH);
delay(75);
digitalWrite(LED2, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED10, LOW);
delay(75);
digitalWrite(LED2, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED10, HIGH);
delay(75);
digitalWrite(LED2, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED10, LOW);
delay(75);
break;
case 12:
digitalWrite(LED1, HIGH);
delay(50);
digitalWrite(LED1, LOW);
delay(50);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
delay(50);
digitalWrite(LED1, LOW);
delay(50);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
delay(50);
digitalWrite(LED1, LOW);
delay(50);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED9, HIGH);
delay(75);
digitalWrite(LED8, HIGH);
delay(75);
digitalWrite(LED7, HIGH);
delay(75);
digitalWrite(LED6, HIGH);
delay(75);
digitalWrite(LED5, HIGH);
delay(75);
digitalWrite(LED4, HIGH);
delay(75);
digitalWrite(LED3, HIGH);
delay(75);
digitalWrite(LED2, HIGH);
delay(75);
digitalWrite(LED2, LOW);
delay(75);
digitalWrite(LED3, LOW);
delay(75);
digitalWrite(LED4, LOW);
delay(75);
digitalWrite(LED5, LOW);
delay(75);
digitalWrite(LED6, LOW);
delay(75);
digitalWrite(LED7, LOW);
delay(75);
digitalWrite(LED8, LOW);
delay(75);
digitalWrite(LED9, LOW);
delay(75);
digitalWrite(LED1, HIGH);
delay(50);
digitalWrite(LED1, LOW);
delay(50);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
delay(50);
digitalWrite(LED1, LOW);
delay(50);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
delay(50);
digitalWrite(LED1, LOW);
delay(50);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED10, LOW);
delay(50);
break;
case 13:
digitalWrite(LED10, HIGH);
delay(75);
digitalWrite(LED10, LOW);
digitalWrite(LED9, HIGH);
delay(75);
digitalWrite(LED9, LOW);
digitalWrite(LED8, HIGH);
delay(75);
digitalWrite(LED8, LOW);
digitalWrite(LED7, HIGH);
delay(75);
digitalWrite(LED7, LOW);
digitalWrite(LED6, HIGH);
delay(75);
digitalWrite(LED6, LOW);
digitalWrite(LED5, HIGH);
delay(75);
digitalWrite(LED5, LOW);
digitalWrite(LED4, HIGH);
delay(75);
digitalWrite(LED4, LOW);
digitalWrite(LED3, HIGH);
delay(75);
digitalWrite(LED3, LOW);
digitalWrite(LED2, HIGH);
delay(75);
digitalWrite(LED2, LOW);
digitalWrite(LED1, HIGH);
delay(75);
digitalWrite(LED1, LOW);
break;
case 14:
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED10, LOW);
digitalWrite(LED9, HIGH);
delay(50);
digitalWrite(LED9, LOW);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED8, LOW);
digitalWrite(LED7, HIGH);
delay(50);
digitalWrite(LED7, LOW);
digitalWrite(LED6, HIGH);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED5, HIGH);
delay(50);
digitalWrite(LED5, LOW);
digitalWrite(LED4, HIGH);
delay(50);
digitalWrite(LED4, LOW);
digitalWrite(LED3, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED2, HIGH);
delay(50);
digitalWrite(LED2, LOW);
digitalWrite(LED1, HIGH);
delay(50);
digitalWrite(LED1, LOW);
break;
case 15:
digitalWrite(LED10, HIGH);
delay(25);
digitalWrite(LED10, LOW);
digitalWrite(LED9, HIGH);
delay(25);
digitalWrite(LED9, LOW);
digitalWrite(LED8, HIGH);
delay(25);
digitalWrite(LED8, LOW);
digitalWrite(LED7, HIGH);
delay(25);
digitalWrite(LED7, LOW);
digitalWrite(LED6, HIGH);
delay(25);
digitalWrite(LED6, LOW);
digitalWrite(LED5, HIGH);
delay(25);
digitalWrite(LED5, LOW);
digitalWrite(LED4, HIGH);
delay(25);
digitalWrite(LED4, LOW);
digitalWrite(LED3, HIGH);
delay(25);
digitalWrite(LED3, LOW);
digitalWrite(LED2, HIGH);
delay(25);
digitalWrite(LED2, LOW);
digitalWrite(LED1, HIGH);
delay(25);
digitalWrite(LED1, LOW);
break;
case 16:
digitalWrite(LED1, HIGH);
digitalWrite(LED10, HIGH);
delay(75);
digitalWrite(LED1, LOW);
digitalWrite(LED10, LOW);
delay(75);
digitalWrite(LED1, HIGH);
digitalWrite(LED10, HIGH);
delay(75);
digitalWrite(LED1, LOW);
digitalWrite(LED10, LOW);
delay(75);
digitalWrite(LED6, HIGH);
digitalWrite(LED5, HIGH);
delay(75);
digitalWrite(LED6, LOW);
digitalWrite(LED5, LOW);
delay(75);
digitalWrite(LED6, HIGH);
digitalWrite(LED5, HIGH);
delay(75);
digitalWrite(LED6, LOW);
digitalWrite(LED5, LOW);
delay(75);
break;
case 17:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(300);
break;
case 18:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(200);
break;
case 19:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
delay(200);
//*********************3 times***************************************
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(200);
break;
case 20:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
delay(100);
//*********************3 times***************************************
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(100);
break;
case 21:
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
delay(75);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
delay(75);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
delay(75);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
delay(75);
//*********************3 times***************************************
digitalWrite(LED1, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED10, HIGH);
delay(75);
digitalWrite(LED1, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED10, LOW);
delay(75);
digitalWrite(LED1, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED10, HIGH);
delay(75);
digitalWrite(LED1, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED10, LOW);
delay(75);
break;
case 22:
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
//*********************3 times***************************************
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
break;
case 23:
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(75);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(75);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED5, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(75);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED5, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(75);
//*********************3 times***************************************
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(75);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(75);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED6, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(75);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED6, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(75);
case 24:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
delay(50);
//*********************1 times***************************************
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
break;
case 25:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
delay(50);
//*********************3 times***************************************
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
break;
case 26:
digitalWrite(LED1, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED9, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED9, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED7, HIGH);
digitalWrite(LED9, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED7, LOW);
digitalWrite(LED9, LOW);
delay(50);
//*********************3 times***************************************
digitalWrite(LED2, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED2, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED2, HIGH);
digitalWrite(LED4, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED2, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED10, LOW);
delay(50);
break;
case 27:
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
delay(50);
//*********************1 times***************************************
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
delay(50);
//*********************1 times***************************************
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
delay(50);
//*********************1 times***************************************
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
delay(50);
//*********************1 times***************************************
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
delay(50);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(LED3, HIGH);
digitalWrite(LED4, HIGH);
delay(50);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(LED3, LOW);
digitalWrite(LED4, LOW);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
digitalWrite(LED7, HIGH);
digitalWrite(LED8, HIGH);
digitalWrite(LED9, HIGH);
digitalWrite(LED10, HIGH);
delay(50);
digitalWrite(LED7, LOW);
digitalWrite(LED8, LOW);
digitalWrite(LED9, LOW);
digitalWrite(LED10, LOW);
delay(50);
break;
}
}