//https://www.youtube.com/watch?v=PF8ASGn9vHE
int led2 = 2;
int led3 = 3;
int led4 = 4;
int led5 = 5;
int led6 = 6;
int led7 = 7;
int led8 = 8;
int led9 = 9;
int led10 = 10;
int led11 = 11;
int led12 = 12;
int led13 = 13;
int led1 = 14;
int leds[] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14};
int ledsEven[7] = {2, 4, 6, 8, 10, 12, 14};
int ledsOdd[7] = {3, 5, 7, 9, 11, 13, 15};
int numLeds = 14;
void setup() {
for (int i = 0; i < numLeds; i++) {
pinMode(leds[i], OUTPUT);
}
}
void loop() {
blink_1(100);
//blink_1(80);
//
//blink_2(40);
//blink_2(40);
//
// blink_3();
// blink_3();
//
// blink_4();
// blink_4();
//
// blink_5();
// blink_5();
//
//test(100);
//
/// blink_6();
// blink_6();
//
//
// blink_7();
// blink_7();
//
// blink_8();
// blink_8();
//
// blink_9();
// blink_9();
//
// blink_10();
// blink_10();
//
// blink_11();
// blink_11();
//
// blink_12();
// blink_12();
//
// blink_13();
// blink_13();
//
// blink_14();
// blink_14();
//
// blink_15();
// blink_15();
//
// blink_16();
// blink_16();
}
void test(int t) {
for (int i = 0; i < numLeds; i++) {
digitalWrite(leds[i], HIGH);
delay(t);
digitalWrite(leds[i], LOW);
delay(t);
}
}
void upDown(int t) {
for (int i = 0; i < numLeds; i++) {
digitalWrite(leds[i], HIGH);
delay(t);
}
for (int i = 0; i < numLeds; i++) {
digitalWrite(leds[numLeds - i - 1], LOW);
delay(t);
}
}
void ledsOFF() {
for (int i = 0; i < numLeds; i++) {
digitalWrite(leds[i], LOW);
}
}
/////////////pattern 1///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_1(int t) {
ledsOFF();
for (int i = 0; i < numLeds; i++) {
digitalWrite(leds[i], HIGH);
delay(t);
}
for (int i = 0; i < numLeds; i++) {
digitalWrite(leds[i], LOW);
delay(t);
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 2///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_2(int t) {
ledsOFF();
for (int i = 0; i < numLeds; i++) {
digitalWrite(leds[i], HIGH);
delay(t);
digitalWrite(leds[i], LOW);
delay(t);
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 3///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_3() {
int t = 150;
// Turn ON odd-numbered LEDs and OFF even-numbered LEDs
for (int i = 0; i < numLeds / 2; i++) {
digitalWrite(ledsOdd[i], HIGH);
digitalWrite(ledsEven[i], LOW);
}
delay(t);
for (int i = 0; i < numLeds / 2; i++) {
digitalWrite(ledsOdd[i], LOW);
digitalWrite(ledsEven[i], HIGH);
}
delay(t);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 4///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_4()
{
int t = 80;
digitalWrite(led1, HIGH );
delay(t);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led3, HIGH);
digitalWrite(led1, LOW );
delay(t);
digitalWrite(led4, HIGH);
digitalWrite(led2, LOW );
delay(t);
digitalWrite(led5, HIGH);
digitalWrite(led3, LOW );
delay(t);
digitalWrite(led6, HIGH);
digitalWrite(led4, LOW );
delay(t);
digitalWrite(led7, HIGH);
digitalWrite(led5, LOW );
delay(t);
digitalWrite(led8, HIGH);
digitalWrite(led6, LOW );
delay(t);
digitalWrite(led9, HIGH);
digitalWrite(led7, LOW );
delay(t);
digitalWrite(led10, HIGH);
digitalWrite(led8, LOW );
delay(t);
digitalWrite(led11, HIGH);
digitalWrite(led9, LOW );
delay(t);
digitalWrite(led12, HIGH);
digitalWrite(led10, LOW );
delay(t);
digitalWrite(led13, HIGH);
digitalWrite(led11, LOW );
delay(t);
digitalWrite(led12, LOW );
delay(t);
digitalWrite(led13, LOW );
delay(t);
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);
digitalWrite(led11, LOW);
digitalWrite(led12, LOW);
digitalWrite(led13, LOW);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 5///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_5()
{
int t = 70;
//digitalWrite(led1, HIGH);
//delay(t);
//digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led6, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led8, LOW);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led9, LOW);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led10, LOW);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led11, LOW);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led12, LOW);
digitalWrite(led13, HIGH);
delay(t);
//digitalWrite(led1, HIGH);
//delay(t);
//digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led6, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led8, LOW);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led9, LOW);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led10, LOW);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led11, LOW);
digitalWrite(led12, HIGH);
delay(t);
// digitalWrite(led1, HIGH);
//delay(t);
//digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led6, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led8, LOW);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led9, LOW);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led10, LOW);
digitalWrite(led11, HIGH);
delay(t);
//digitalWrite(led1, HIGH);
//delay(t);
//digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led6, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led8, LOW);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led9, LOW);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led1, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led6, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led8, LOW);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led1, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led6, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led1, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led6, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led1, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led6, HIGH);
delay(t);
digitalWrite(led1, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led1, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led1, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led1, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led1, HIGH);
delay(t);
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);
digitalWrite(led11, LOW);
digitalWrite(led12, LOW);
digitalWrite(led13, LOW);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 6///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_6()
{
int t = 70;
digitalWrite(led1, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led6, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led8, LOW);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led9, LOW);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led10, LOW);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led11, LOW);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led12, LOW);
digitalWrite(led13, HIGH);
delay(t);
digitalWrite(led13, LOW);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led12, LOW);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led11, LOW);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led10, LOW);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led9, LOW);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led8, LOW);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
digitalWrite(led6, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led1, HIGH);
delay(t);
digitalWrite(led1, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led6, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led8, LOW);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led9, LOW);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led10, LOW);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led11, LOW);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led12, LOW);
digitalWrite(led13, HIGH);
delay(t);
digitalWrite(led13, LOW);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led12, LOW);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led11, LOW);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led10, LOW);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led9, LOW);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led8, LOW);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
digitalWrite(led6, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led1, HIGH);
delay(t);
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);
digitalWrite(led11, LOW);
digitalWrite(led12, LOW);
digitalWrite(led13, LOW);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 7///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_7()
{
int t = 60;
digitalWrite(led1, HIGH );
delay(t);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led6, HIGH);
delay(t);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led13, HIGH);
delay(t);
digitalWrite(led1, LOW );
delay(t);
digitalWrite(led2, LOW);
delay(t);
digitalWrite(led3, LOW);
delay(t);
digitalWrite(led4, LOW);
delay(t);
digitalWrite(led5, LOW);
delay(t);
digitalWrite(led6, LOW);
delay(t);
digitalWrite(led7, LOW);
delay(t);
digitalWrite(led8, LOW);
delay(t);
digitalWrite(led9, LOW);
delay(t);
digitalWrite(led10, LOW);
delay(t);
digitalWrite(led11, LOW);
delay(t);
digitalWrite(led12, LOW);
delay(t);
digitalWrite(led13, LOW);
delay(t);
digitalWrite(led13, HIGH );
delay(t);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led6, HIGH);
delay(t);
digitalWrite(led5, HIGH);
delay(t);
digitalWrite(led4, HIGH);
delay(t);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led1, HIGH);
delay(t);
digitalWrite(led13, LOW );
delay(t);
digitalWrite(led12, LOW);
delay(t);
digitalWrite(led11, LOW);
delay(t);
digitalWrite(led10, LOW);
delay(t);
digitalWrite(led9, LOW);
delay(t);
digitalWrite(led8, LOW);
delay(t);
digitalWrite(led7, LOW);
delay(t);
digitalWrite(led6, LOW);
delay(t);
digitalWrite(led5, LOW);
delay(t);
digitalWrite(led4, LOW);
delay(t);
digitalWrite(led3, LOW);
delay(t);
digitalWrite(led2, LOW);
delay(t);
digitalWrite(led1, LOW);
delay(t);
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);
digitalWrite(led11, LOW);
digitalWrite(led12, LOW);
digitalWrite(led13, LOW);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 8///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_8()
{
int t = 70;
digitalWrite(led1, HIGH );
digitalWrite(led13, HIGH );
delay(t);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH );
delay(t);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH );
delay(t);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led6, HIGH);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led1, LOW );
digitalWrite(led13, LOW );
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led12, LOW );
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led11, LOW);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led10, LOW);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led9, LOW);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led8, LOW);
delay(t);
digitalWrite(led1, HIGH );
digitalWrite(led13, HIGH );
delay(t);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH );
delay(t);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH );
delay(t);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led6, HIGH);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led1, LOW );
digitalWrite(led13, LOW );
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led12, LOW );
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led11, LOW);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led10, LOW);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led9, LOW);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led8, LOW);
delay(t);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 9///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_9()
{
int t = 70;
digitalWrite(led1, HIGH );
digitalWrite(led13, HIGH );
delay(t);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH );
delay(t);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH );
delay(t);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led6, HIGH);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led8, LOW );
digitalWrite(led6, LOW );
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led9, LOW );
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led10, LOW);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led11, LOW);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led12, LOW);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led13, LOW);
delay(t);
digitalWrite(led1, HIGH );
digitalWrite(led13, HIGH );
delay(t);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH );
delay(t);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH );
delay(t);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led6, HIGH);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led8, LOW );
digitalWrite(led6, LOW );
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led9, LOW );
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led10, LOW);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led11, LOW);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led12, LOW);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led13, LOW);
delay(t);
digitalWrite(led1, HIGH );
digitalWrite(led13, HIGH );
delay(t);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH );
delay(t);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH );
delay(t);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led6, HIGH);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led8, LOW );
digitalWrite(led6, LOW );
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led9, LOW );
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led10, LOW);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led11, LOW);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led12, LOW);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led13, LOW);
delay(t);
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);
digitalWrite(led11, LOW);
digitalWrite(led12, LOW);
digitalWrite(led13, LOW);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 10///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_10()
{
int t = 100;
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);
digitalWrite(led11, HIGH);
digitalWrite(led12, HIGH);
digitalWrite(led13, HIGH);
delay(t);
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);
digitalWrite(led11, LOW);
digitalWrite(led12, LOW);
digitalWrite(led13, LOW);
delay(t);
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);
digitalWrite(led11, HIGH);
digitalWrite(led12, HIGH);
digitalWrite(led13, HIGH);
delay(t);
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);
digitalWrite(led11, LOW);
digitalWrite(led12, LOW);
digitalWrite(led13, LOW);
delay(t);
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);
digitalWrite(led11, HIGH);
digitalWrite(led12, HIGH);
digitalWrite(led13, HIGH);
delay(t);
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);
digitalWrite(led11, LOW);
digitalWrite(led12, LOW);
digitalWrite(led13, LOW);
delay(t);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 11///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_11()
{
int t = 80;
digitalWrite(led1, HIGH );
delay(t);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led3, HIGH);
digitalWrite(led1, LOW );
delay(t);
digitalWrite(led4, HIGH);
digitalWrite(led2, LOW );
delay(t);
digitalWrite(led5, HIGH);
digitalWrite(led3, LOW );
delay(t);
digitalWrite(led6, HIGH);
digitalWrite(led4, LOW );
delay(t);
digitalWrite(led7, HIGH);
digitalWrite(led5, LOW );
delay(t);
digitalWrite(led8, HIGH);
digitalWrite(led6, LOW );
delay(t);
digitalWrite(led9, HIGH);
digitalWrite(led7, LOW );
delay(t);
digitalWrite(led10, HIGH);
digitalWrite(led8, LOW );
delay(t);
digitalWrite(led11, HIGH);
digitalWrite(led9, LOW );
delay(t);
digitalWrite(led12, HIGH);
digitalWrite(led10, LOW );
delay(t);
digitalWrite(led13, HIGH);
digitalWrite(led11, LOW );
delay(t);
digitalWrite(led12, LOW );
delay(t);
digitalWrite(led13, LOW );
delay(t);
digitalWrite(led13, HIGH );
delay(t);
digitalWrite(led12, HIGH );
delay(t);
digitalWrite(led11, HIGH);
digitalWrite(led13, LOW );
delay(t);
digitalWrite(led10, HIGH);
digitalWrite(led12, LOW );
delay(t);
digitalWrite(led9, HIGH);
digitalWrite(led11, LOW );
delay(t);
digitalWrite(led8, HIGH);
digitalWrite(led10, LOW );
delay(t);
digitalWrite(led7, HIGH);
digitalWrite(led9, LOW );
delay(t);
digitalWrite(led6, HIGH);
digitalWrite(led8, LOW );
delay(t);
digitalWrite(led5, HIGH);
digitalWrite(led7, LOW );
delay(t);
digitalWrite(led4, HIGH);
digitalWrite(led6, LOW );
delay(t);
digitalWrite(led3, HIGH);
digitalWrite(led5, LOW );
delay(t);
digitalWrite(led2, HIGH);
digitalWrite(led4, LOW );
delay(t);
digitalWrite(led1, HIGH);
digitalWrite(led3, LOW );
delay(t);
digitalWrite(led2, LOW );
delay(t);
digitalWrite(led1, LOW );
delay(t);
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);
digitalWrite(led11, LOW);
digitalWrite(led12, LOW);
digitalWrite(led13, LOW);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 12///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_12()
{
int t = 80;
digitalWrite(led1, HIGH );
delay(t);
digitalWrite(led2, HIGH);
delay(t);
digitalWrite(led3, HIGH);
delay(t);
digitalWrite(led4, HIGH);
digitalWrite(led1, LOW );
delay(t);
digitalWrite(led5, HIGH);
digitalWrite(led2, LOW );
delay(t);
digitalWrite(led6, HIGH);
digitalWrite(led3, LOW );
delay(t);
digitalWrite(led7, HIGH);
digitalWrite(led4, LOW );
delay(t);
digitalWrite(led8, HIGH);
digitalWrite(led5, LOW );
delay(t);
digitalWrite(led9, HIGH);
digitalWrite(led6, LOW );
delay(t);
digitalWrite(led10, HIGH);
digitalWrite(led7, LOW );
delay(t);
digitalWrite(led11, HIGH);
digitalWrite(led8, LOW );
delay(t);
digitalWrite(led12, HIGH);
digitalWrite(led9, LOW );
delay(t);
digitalWrite(led13, HIGH);
digitalWrite(led10, LOW);
delay(t);
digitalWrite(led11, LOW);
delay(t);
digitalWrite(led12, LOW);
delay(t);
digitalWrite(led13, LOW);
delay(t);
digitalWrite(led13, HIGH);
delay(t);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led10, HIGH);
digitalWrite(led13, LOW );
delay(t);
digitalWrite(led9, HIGH);
digitalWrite(led12, LOW );
delay(t);
digitalWrite(led8, HIGH);
digitalWrite(led11, LOW );
delay(t);
digitalWrite(led7, HIGH);
digitalWrite(led10, LOW );
delay(t);
digitalWrite(led6, HIGH);
digitalWrite(led9, LOW );
delay(t);
digitalWrite(led5, HIGH);
digitalWrite(led8, LOW );
delay(t);
digitalWrite(led4, HIGH);
digitalWrite(led7, LOW );
delay(t);
digitalWrite(led3, HIGH);
digitalWrite(led6, LOW );
delay(t);
digitalWrite(led2, HIGH);
digitalWrite(led5, LOW );
delay(t);
digitalWrite(led1, HIGH);
digitalWrite(led4, LOW );
delay(t);
digitalWrite(led3, LOW );
delay(t);
digitalWrite(led2, LOW );
delay(t);
digitalWrite(led1, LOW );
delay(t);
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);
digitalWrite(led11, LOW);
digitalWrite(led12, LOW);
digitalWrite(led13, LOW);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 13///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_13()
{
int t = 90;
digitalWrite(led1, HIGH );
digitalWrite(led13, HIGH );
delay(t);
digitalWrite(led1, LOW );
digitalWrite(led13, LOW );
delay(t);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH );
delay(t);
digitalWrite(led2, LOW );
digitalWrite(led12, LOW );
delay(t);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH );
delay(t);
digitalWrite(led3, LOW );
digitalWrite(led11, LOW );
delay(t);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led4, LOW );
digitalWrite(led10, LOW );
delay(t);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led5, LOW );
digitalWrite(led9, LOW );
delay(t);
digitalWrite(led6, HIGH);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led6, LOW );
digitalWrite(led8, LOW );
delay(t);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
delay(t);
digitalWrite(led8, HIGH);
digitalWrite(led6, HIGH );
delay(t);
digitalWrite(led6, LOW );
digitalWrite(led8, LOW );
delay(t);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led5, LOW );
digitalWrite(led9, LOW );
delay(t);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led4, LOW );
digitalWrite(led10, LOW );
delay(t);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH );
delay(t);
digitalWrite(led3, LOW );
digitalWrite(led11, LOW );
delay(t);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH );
delay(t);
digitalWrite(led2, LOW );
digitalWrite(led12, LOW );
delay(t);
digitalWrite(led1, HIGH );
digitalWrite(led13, HIGH );
delay(t);
digitalWrite(led1, LOW );
digitalWrite(led13, LOW );
delay(t);
digitalWrite(led1, HIGH );
digitalWrite(led13, HIGH );
delay(t);
digitalWrite(led1, LOW );
digitalWrite(led13, LOW );
delay(t);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH );
delay(t);
digitalWrite(led2, LOW );
digitalWrite(led12, LOW );
delay(t);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH );
delay(t);
digitalWrite(led3, LOW );
digitalWrite(led11, LOW );
delay(t);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led4, LOW );
digitalWrite(led10, LOW );
delay(t);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led5, LOW );
digitalWrite(led9, LOW );
delay(t);
digitalWrite(led6, HIGH);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led6, LOW );
digitalWrite(led8, LOW );
delay(t);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
delay(t);
digitalWrite(led8, HIGH);
digitalWrite(led6, HIGH );
delay(t);
digitalWrite(led6, LOW );
digitalWrite(led8, LOW );
delay(t);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led5, LOW );
digitalWrite(led9, LOW );
delay(t);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led4, LOW );
digitalWrite(led10, LOW );
delay(t);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH );
delay(t);
digitalWrite(led3, LOW );
digitalWrite(led11, LOW );
delay(t);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH );
delay(t);
digitalWrite(led2, LOW );
digitalWrite(led12, LOW );
delay(t);
digitalWrite(led1, HIGH );
digitalWrite(led13, HIGH );
delay(t);
digitalWrite(led1, LOW );
digitalWrite(led13, LOW );
delay(t);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 14///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_14()
{
int t = 80;
digitalWrite(led1, HIGH);
digitalWrite(led13, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led13, LOW);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led12, LOW);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led11, LOW);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led10, LOW);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led9, LOW);
digitalWrite(led6, HIGH);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led8, LOW);
delay(t);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
delay(t);
digitalWrite(led1, HIGH);
digitalWrite(led13, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led13, LOW);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led12, LOW);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led11, LOW);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led10, LOW);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led9, LOW);
digitalWrite(led6, HIGH);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led8, LOW);
delay(t);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
delay(t);
digitalWrite(led1, HIGH);
digitalWrite(led13, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led13, LOW);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led12, LOW);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led11, LOW);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led10, LOW);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led9, LOW);
digitalWrite(led6, HIGH);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led8, LOW);
delay(t);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
delay(t);
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);
digitalWrite(led11, LOW);
digitalWrite(led12, LOW);
digitalWrite(led13, LOW);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 15///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_15()
{
int t = 80;
digitalWrite(led1, HIGH);
digitalWrite(led13, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led13, LOW);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led12, LOW);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led11, LOW);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led10, LOW);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led9, LOW);
digitalWrite(led6, HIGH);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led8, LOW);
delay(t);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
delay(t);
digitalWrite(led6, HIGH);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led8, LOW);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led9, LOW);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led10, LOW);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led11, LOW);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led12, LOW);
digitalWrite(led1, HIGH);
digitalWrite(led13, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led13, LOW);
delay(t);
digitalWrite(led1, HIGH);
digitalWrite(led13, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led13, LOW);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led12, LOW);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led11, LOW);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led10, LOW);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led9, LOW);
digitalWrite(led6, HIGH);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led8, LOW);
delay(t);
digitalWrite(led7, HIGH);
delay(t);
digitalWrite(led7, LOW);
delay(t);
digitalWrite(led6, HIGH);
digitalWrite(led8, HIGH);
delay(t);
digitalWrite(led6, LOW);
digitalWrite(led8, LOW);
digitalWrite(led5, HIGH);
digitalWrite(led9, HIGH);
delay(t);
digitalWrite(led5, LOW);
digitalWrite(led9, LOW);
digitalWrite(led4, HIGH);
digitalWrite(led10, HIGH);
delay(t);
digitalWrite(led4, LOW);
digitalWrite(led10, LOW);
digitalWrite(led3, HIGH);
digitalWrite(led11, HIGH);
delay(t);
digitalWrite(led3, LOW);
digitalWrite(led11, LOW);
digitalWrite(led2, HIGH);
digitalWrite(led12, HIGH);
delay(t);
digitalWrite(led2, LOW);
digitalWrite(led12, LOW);
digitalWrite(led1, HIGH);
digitalWrite(led13, HIGH);
delay(t);
digitalWrite(led1, LOW);
digitalWrite(led13, LOW);
delay(t);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////pattern 16///////////////////////////////////////////////////////////////////////////////////////////////////
void blink_16()
{
int t = 80;
}