You are on page 1of 5

/*

Blink

Turns on an LED on for one second, then off for one second, repeatedly.

This example code is in the public domain.

*/

// Pin 13 has an LED connected on most Arduino boards.

// give it a name:

int led1 = 13;

int led2 = 12;

int led3 = 11;

int led4 = 10;

int led5 = 9;

int led6 = 8;

int led7 = 7;

int led8 = 6;

int led9 = 5;

int led10 = 4;

int led11 = 3;

int led12 = 2;

// the setup routine runs once when you press reset:

void setup() {

// initialize the digital pin as an output.

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);

pinMode(led11, OUTPUT);

pinMode(led12, OUTPUT);

// the loop routine runs over and over again forever:

void loop() {

digitalWrite(led1, HIGH); // turn the LED on (HIGH is the voltage level)

digitalWrite(led2, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led3, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led6, HIGH); // turn the LED off by making the voltage LOW

digitalWrite(led9, HIGH); // turn the LED on (HIGH is the voltage level)

digitalWrite(led12, HIGH); // turn the LED off by making the voltage LOW

delay (1000);

digitalWrite(led4, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led5, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led1, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led2, HIGH); // turn the LED on (HIGH is the voltage level)

digitalWrite(led3, LOW); // turn the LED off by making the voltage LOW
delay (1000);

digitalWrite(led7, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led8, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led9, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led1, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led2, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led3, HIGH); // turn the LED off by making the voltage LOW

digitalWrite(led4, HIGH); // turn the LED on (HIGH is the voltage level)

digitalWrite(led5, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led6, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led3, HIGH); // turn the LED off by making the voltage LOW

digitalWrite(led9, HIGH); // turn the LED on (HIGH is the voltage level)

digitalWrite(led12, HIGH); // turn the LED off by making the voltage LOW

delay (1000);

digitalWrite(led7,LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led8, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led4, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led5, HIGH); // turn the LED on (HIGH is the voltage level)

digitalWrite(led6, LOW); // turn the LED off by making the voltage LOW

delay (1000);

digitalWrite(led10, LOW); // turn the LED on (HIGH is the voltage level)


digitalWrite(led11, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led12, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led4, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led5, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led6, HIGH); // turn the LED off by making the voltage LOW

digitalWrite(led7, HIGH); // turn the LED on (HIGH is the voltage level)

digitalWrite(led8, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led9, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led3, HIGH); // turn the LED off by making the voltage LOW

digitalWrite(led6, HIGH); // turn the LED on (HIGH is the voltage level)

digitalWrite(led12, HIGH); // turn the LED off by making the voltage LOW

delay (1000);

digitalWrite(led10, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led11, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led7, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led8, HIGH); // turn the LED on (HIGH is the voltage level)

digitalWrite(led9, LOW); // turn the LED off by making the voltage LOW

delay (1000);

digitalWrite(led1, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led2, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led3, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led7, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led8, LOW); // turn the LED on (HIGH is the voltage level)


digitalWrite(led9, HIGH); // turn the LED off by making the voltage LOW

digitalWrite(led10, HIGH); // turn the LED on (HIGH is the voltage level)

digitalWrite(led11, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led12, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led3, HIGH); // turn the LED off by making the voltage LOW

digitalWrite(led6, HIGH); // turn the LED on (HIGH is the voltage level)

digitalWrite(led9, HIGH); // turn the LED off by making the voltage LOW

delay (1000);

digitalWrite(led1, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led2, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led10, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led11, HIGH); // turn the LED on (HIGH is the voltage level)

digitalWrite(led12, LOW); // turn the LED off by making the voltage LOW

delay (1000);

digitalWrite(led4, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led5, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led6, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led10, LOW); // turn the LED off by making the voltage LOW

digitalWrite(led11, LOW); // turn the LED on (HIGH is the voltage level)

digitalWrite(led12, HIGH); // turn the LED off by making the voltage LOW

You might also like