Arduino LED Chaiser.. Code & Circuit Diagram by T4TECHZ

int led1 = 1;

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;

void setup()

{

pinMode(led1, OUTPUT);

pinMode(led2, OUTPUT);

pinMode(led3, OUTPUT);

pinMode(led4, OUTPUT);

pinMode(led5, OUTPUT);

pinMode(led6, OUTPUT);

pinMode(led7, OUTPUT);

pinMode(led8, OUTPUT);

pinMode(led9, OUTPUT);

pinMode(led10, OUTPUT);

}

void loop()

{

digitalWrite(led1 = 1, HIGH);

delay(10);

digitalWrite(led1 = 1, LOW);

delay(70);

digitalWrite(led2 = 2, HIGH);

delay(10);

digitalWrite(led2 = 2, LOW);

delay(70);

digitalWrite(led3 = 3, HIGH);

delay(10);

digitalWrite(led3 = 3, LOW);

delay(70);

digitalWrite(led4 = 4, HIGH);

delay(10);

digitalWrite(led4 = 4, LOW);

delay(70);

digitalWrite(led5 = 5, HIGH);

delay(10);

digitalWrite(led5 = 5, LOW);

delay(70);

digitalWrite(led6 = 6, HIGH);

delay(10);

digitalWrite(led6 = 6, LOW);

delay(70);

digitalWrite(led7 = 7, HIGH);

delay(10);

digitalWrite(led7 = 7, LOW);

delay(70);

digitalWrite(led8 = 8, HIGH);

delay(10);

digitalWrite(led8 = 8, LOW);

delay(70);

digitalWrite(led9 = 9, HIGH);

delay(10);

digitalWrite(led9 = 9, LOW);

delay(70);

digitalWrite(led10 = 10, HIGH);

delay(10);

digitalWrite(led10 = 10, LOW);

delay(70);

}

Comments

Popular posts from this blog

Bluetooth Controlled car code - T4TECHZ