-
Notifications
You must be signed in to change notification settings - Fork 5
/
3_RGB_Led.ino
44 lines (41 loc) · 865 Bytes
/
3_RGB_Led.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
void setup() {
pinMode(0, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(16, OUTPUT);
digitalWrite(4, LOW);
}
void loop() {
digitalWrite(0, LOW);
digitalWrite(5, LOW);
digitalWrite(16, LOW);
delay(1000);
digitalWrite(0, LOW);
digitalWrite(5, LOW);
digitalWrite(16, HIGH);
delay(1000);
digitalWrite(0, LOW);
digitalWrite(5, HIGH);
digitalWrite(16, LOW);
delay(1000);
digitalWrite(0, LOW);
digitalWrite(5, HIGH);
digitalWrite(16, HIGH);
delay(1000);
digitalWrite(0, HIGH);
digitalWrite(5, LOW);
digitalWrite(16, LOW);
delay(1000);
digitalWrite(0, HIGH);
digitalWrite(5, LOW);
digitalWrite(16, HIGH);
delay(1000);
digitalWrite(0, HIGH);
digitalWrite(5, HIGH);
digitalWrite(16, LOW);
delay(1000);
digitalWrite(0, HIGH);
digitalWrite(5, HIGH);
digitalWrite(16, HIGH);
delay(1000);
}