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