Skip to content

Commit 4d8d58f

Browse files
Change RGB light to minimal brightness
1 parent 82ed571 commit 4d8d58f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Binary_clock.ino

+4-6
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,13 @@ void updateSecondColor(int seconds){
100100
int red = 0;
101101
int green = 0;
102102
int blue = 0;
103+
// Here we want a nice transition of color as time passes, but right now we just show primary colors for 20s
103104
if (seconds <= 21){
104-
blue = seconds*2;
105-
green = 21 - seconds;
105+
red = 10;
106106
} else if (seconds <= 41){
107-
red = seconds;
108-
blue = 41 - seconds;
107+
green = 10;
109108
} else {
110-
red = 60 - seconds;
111-
green = seconds;
109+
blue = 5;
112110
}
113111
Serial.print("Second: ");
114112
Serial.print(seconds);

0 commit comments

Comments
 (0)