Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ********** Police LED Light Bar ************
- Pengarang : Namamu
- Tanggal : 15.8.2024
- ********************************************
- */
- const int patternCount = 30;
- int LED1=3;
- int LED2=4;
- int LED3=5;
- int LED4=6;
- int LED5=7;
- int LED6=8;
- int LED7=9;
- int LED8=10;
- int LED9=11;
- int LED10=12;
- int buttonPin=2;
- static unsigned long lastButtonTime = 0;
- void setup()
- {
- pinMode(LED1,OUTPUT);
- pinMode(LED2,OUTPUT); // atur setiap LED ke pin
- pinMode(LED3,OUTPUT);
- pinMode(LED4,OUTPUT);
- pinMode(LED5,OUTPUT);
- pinMode(LED6,OUTPUT);
- pinMode(LED7,OUTPUT);
- pinMode(LED8,OUTPUT);
- pinMode(LED9,OUTPUT);
- pinMode(LED10,OUTPUT);
- pinMode(buttonPin,INPUT);
- }
- void loop()
- {
- static int pattern = 0;
- // Jika tombol mati dan terakhir kali tombol mati lebih dari 1/10 detik yang lalu.
- 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); // Tunggu 25 ms
- digitalWrite(LED4,HIGH); // Turno LED1 on
- digitalWrite(LED7,HIGH); // Turn LED1 off
- delay(150); // Tunggu 25 ms
- digitalWrite(LED3,HIGH); // Turn the LED on
- digitalWrite(LED8,HIGH); // Turn LED off
- delay(150); // Tunggu 25 ms
- digitalWrite(LED2,HIGH); // Turno LED1 on
- digitalWrite(LED9,HIGH); // Turn LED1 off
- delay(150); // Tunggu 25 ms
- digitalWrite(LED1,HIGH); // Turn the LED on
- digitalWrite(LED10,HIGH); // Turn LED off
- delay(150); // Tunggu 25 ms
- digitalWrite(LED1,LOW); // Turn the LED on
- digitalWrite(LED2,LOW); // Turn LED off
- digitalWrite(LED3,LOW); // Turn 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;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement