-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmitColor.h
More file actions
35 lines (28 loc) · 715 Bytes
/
EmitColor.h
File metadata and controls
35 lines (28 loc) · 715 Bytes
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
int REDPin = 6; // RED pin of the LED to PWM pin 6
int GREENPin = 5; // GREEN pin of the LED to PWM pin 5
int BLUEPin = 3; // BLUE pin of the LED to PWM pin 3
void steadyRed() {
analogWrite(REDPin, 255);
analogWrite(GREENPin, 0);
analogWrite(BLUEPin, 0);
}
void steadyGreen() {
analogWrite(REDPin, 0);
analogWrite(GREENPin, 255);
analogWrite(BLUEPin, 0);
}
void steadyBlue() {
analogWrite(REDPin, 0);
analogWrite(GREENPin, 0);
analogWrite(BLUEPin, 255);
}
void steadyYellow() {
analogWrite(REDPin, 255);
analogWrite(GREENPin, 255);
analogWrite(BLUEPin, 0);
}
void none() {
analogWrite(REDPin, 0);
analogWrite(GREENPin, 0);
analogWrite(BLUEPin, 0);
}