1
2
3int pin7 = 7;
4int pin6 = 6;
5int pin5 = 5;
6int pin4 = 4;
7int TIME = 1000;
8
9
10void setup() {
11pinMode (pin7, OUTPUT);
12pinMode (pin6, OUTPUT);
13pinMode (pin5, OUTPUT);
14pinMode (pin4, OUTPUT);
15
16}
17
18void loop() {
19digitalWrite(pin7, LOW);
20digitalWrite(pin6, LOW);
21digitalWrite(pin5, LOW);
22digitalWrite(pin4, LOW);
23delay(TIME);
24
25digitalWrite(pin7, HIGH);
26digitalWrite(pin6, LOW);
27digitalWrite(pin5, LOW);
28digitalWrite(pin4, LOW);
29delay(TIME);
30
31digitalWrite(pin7, LOW);
32digitalWrite(pin6, HIGH);
33digitalWrite(pin5, LOW);
34digitalWrite(pin4, LOW);
35delay(TIME);
36
37digitalWrite(pin7, HIGH);
38digitalWrite(pin6, HIGH);
39digitalWrite(pin5, LOW);
40digitalWrite(pin4, LOW);
41delay(TIME);
42
43digitalWrite(pin7, LOW);
44digitalWrite(pin6, LOW);
45digitalWrite(pin5, HIGH);
46digitalWrite(pin4, LOW);
47delay(TIME);
48
49digitalWrite(pin7, HIGH);
50digitalWrite(pin6, LOW);
51digitalWrite(pin5, HIGH);
52digitalWrite(pin4, LOW);
53delay(TIME);
54
55digitalWrite(pin7, LOW);
56digitalWrite(pin6, HIGH);
57digitalWrite(pin5, HIGH);
58digitalWrite(pin4, LOW);
59delay(TIME);
60
61digitalWrite(pin7, HIGH);
62digitalWrite(pin6, HIGH);
63digitalWrite(pin5, HIGH);
64digitalWrite(pin4, LOW);
65delay(TIME);
66
67digitalWrite(pin7, LOW);
68digitalWrite(pin6, LOW);
69digitalWrite(pin5, LOW);
70digitalWrite(pin4, HIGH);
71delay(TIME);
72
73digitalWrite(pin7, HIGH);
74digitalWrite(pin6, LOW);
75digitalWrite(pin5, LOW);
76digitalWrite(pin4, HIGH);
77delay(TIME);
78
79digitalWrite(pin7, LOW);
80digitalWrite(pin6, HIGH);
81digitalWrite(pin5, LOW);
82digitalWrite(pin4, HIGH);
83delay(TIME);
84
85digitalWrite(pin7, HIGH);
86digitalWrite(pin6, HIGH);
87digitalWrite(pin5, LOW);
88digitalWrite(pin4, HIGH);
89delay(TIME);
90
91digitalWrite(pin7, LOW);
92digitalWrite(pin6, LOW);
93digitalWrite(pin5, HIGH);
94digitalWrite(pin4, HIGH);
95delay(TIME);
96
97digitalWrite(pin7, HIGH);
98digitalWrite(pin6, LOW);
99digitalWrite(pin5, HIGH);
100digitalWrite(pin4, HIGH);
101delay(TIME);
102
103digitalWrite(pin7, LOW);
104digitalWrite(pin6, HIGH);
105digitalWrite(pin5, HIGH);
106digitalWrite(pin4, HIGH);
107delay(TIME);
108
109digitalWrite(pin7, HIGH);
110digitalWrite(pin6, HIGH);
111digitalWrite(pin5, HIGH);
112digitalWrite(pin4, HIGH);
113delay(TIME);
114
115}