aboutsummaryrefslogtreecommitdiffstats
path: root/src/esp
diff options
context:
space:
mode:
Diffstat (limited to 'src/esp')
-rw-r--r--src/esp/halfcab/halfcab.ino22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/esp/halfcab/halfcab.ino b/src/esp/halfcab/halfcab.ino
index c8935f5..57723d6 100644
--- a/src/esp/halfcab/halfcab.ino
+++ b/src/esp/halfcab/halfcab.ino
@@ -88,7 +88,25 @@ blink(void)
void
plain(void)
{
- fill(GRUV);
+ CRGB color;
+ byte r;
+ byte g;
+ byte b;
+
+ color = BLACK;
+ while (Serial.available() <= 0) {
+ /* empty */
+ }
+ color.r = Serial.read();
+ while (Serial.available() <= 0) {
+ /* empty */
+ }
+ color.g = Serial.read();
+ while (Serial.available() <= 0) {
+ /* empty */
+ }
+ color.b = Serial.read();
+ fill(color);
}
void
@@ -119,7 +137,7 @@ loop(void)
} else {
i = 0;
while (i < NUM_LEDS) {
- leds[i] = GREEN;
+ leds[i] = RED;
i++;
}
FastLED.show();