### How many LED blinking patterns can made with nine leds in arduino ( part 4 ) 595

Before reading this article, Do not watch before or Have not any idea about LEDs blinking pattern programming. Browse Custom LED blinking pattern article ( Explain in here, How to design custom LEDs pattern, you own ). ``````int op[]  = {13, 12, 11, 10, 9, 8, 7, 6, 5};
int speed = 200;
int point1 = 0;
int point2 = 1;
int side = 0;
void setup() {
for (int i = 0; i < 9; i++) { pinMode(op[i], OUTPUT); }
}
void loop() {
for (int i = 0; i < 9; i++) {  digitalWrite(op[i], LOW); }
for (int i = point1; i < point2; i++) {  digitalWrite(op[i], HIGH); }
if (side == 0) {
point2++;
if (point2 > 8) { side = 1; }
} else {
point1++;
if (point1 > 8) { side =  point1 = 0; point2 = 1;  }
}
delay(speed);
}``````

``````int op[]  = {13, 12, 11, 10, 9, 8, 7, 6, 5};
int speed = 1000;
int point = 4;
int side = 0;
void setup() {
for (int i = 0; i < 9; i++) { pinMode(op[i], OUTPUT); }
}
void loop() {
for (int i = 0; i < 9; i++) { digitalWrite(op[i], LOW); }
digitalWrite(op[point], HIGH);
if (side == 0) {
point++;
if (point > 8) { side = 1; point = 4; }
} else {
point--;
if (point < 0) { side = 0; point = 4; }
}

delay(speed);
}``````

``````int op[]  = {13, 12, 11, 10, 9, 8, 7, 6, 5};
int point1 = 4;
int point2 = 4;
int speed = 200;
void setup() {
for (int i = 0; i < 9; i++) {
pinMode(op[i], OUTPUT);
}
}
void loop() {
for (int i = 0; i < 9; i++) {
digitalWrite(op[i], LOW);
}
digitalWrite(op[point1], HIGH);
digitalWrite(op[point2], HIGH);
point1--;
point2++;
if (point1 < 0) {
point1 = 4;
point2 = 4;
}
delay(speed);
}
``````