1
2
3
4int LED3 = 11;
5int LED4 = 10;
6int LED5 = 9;
7int LED6 = 8;
8int LED7 = 7;
9int LED8 = 6;
10int LED9 = 5;
11int LED10 = 4;
12int LED11 = 3;
13int LED12 = 2;
14
15
16
17void setup() {
18 pinMode(LED3, OUTPUT);
19 pinMode(LED4, OUTPUT);
20 pinMode(LED5, OUTPUT);
21 pinMode(LED6, OUTPUT);
22 pinMode(LED7, OUTPUT);
23 pinMode(LED8, OUTPUT);
24 pinMode(LED9, OUTPUT);
25 pinMode(LED10, OUTPUT);
26 pinMode(LED11, OUTPUT);
27 pinMode(LED12, OUTPUT);
28}
29
30
31void loop() {
32 digitalWrite(LED3, HIGH);
33 delay(100);
34 digitalWrite(LED4, HIGH);
35 delay(100);
36 digitalWrite(LED5, HIGH);
37 delay(100);
38 digitalWrite(LED6, HIGH);
39 delay(100);
40 digitalWrite(LED7, HIGH);
41 delay(100);
42 digitalWrite(LED8, HIGH);
43 delay(100);
44 digitalWrite(LED9, HIGH);
45 delay(100);
46 digitalWrite(LED10, HIGH);
47 delay(100);
48 digitalWrite(LED11, HIGH);
49 delay(100);
50 digitalWrite(LED12, HIGH);
51 delay(100);
52 digitalWrite(LED3, LOW);
53 delay(100);
54 digitalWrite(LED4, LOW);
55 delay(100);
56 digitalWrite(LED5, LOW);
57 delay(100);
58 digitalWrite(LED6, LOW);
59 delay(100);
60 digitalWrite(LED7, LOW);
61 delay(100);
62 digitalWrite(LED8, LOW);
63 delay(100);
64 digitalWrite(LED9, LOW);
65 delay(100);
66 digitalWrite(LED10, LOW);
67 delay(100);
68 digitalWrite(LED11, LOW);
69 delay(100);
70 digitalWrite(LED12, LOW);
71 delay(100);
72}
73