|
|
@ -194,9 +194,7 @@ bool LEDControl::focusHook(const char *command) {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
cRGB c;
|
|
|
|
cRGB c;
|
|
|
|
|
|
|
|
|
|
|
|
c.r = Serial.parseInt();
|
|
|
|
::Focus.readColor(c);
|
|
|
|
c.g = Serial.parseInt();
|
|
|
|
|
|
|
|
c.b = Serial.parseInt();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setCrgbAt(idx, c);
|
|
|
|
setCrgbAt(idx, c);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -205,9 +203,7 @@ bool LEDControl::focusHook(const char *command) {
|
|
|
|
case SETALL: {
|
|
|
|
case SETALL: {
|
|
|
|
cRGB c;
|
|
|
|
cRGB c;
|
|
|
|
|
|
|
|
|
|
|
|
c.r = Serial.parseInt();
|
|
|
|
::Focus.readColor(c);
|
|
|
|
c.g = Serial.parseInt();
|
|
|
|
|
|
|
|
c.b = Serial.parseInt();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_all_leds_to(c);
|
|
|
|
set_all_leds_to(c);
|
|
|
|
|
|
|
|
|
|
|
@ -246,9 +242,7 @@ bool LEDControl::focusHook(const char *command) {
|
|
|
|
while (idx < LED_COUNT && Serial.peek() != '\n') {
|
|
|
|
while (idx < LED_COUNT && Serial.peek() != '\n') {
|
|
|
|
cRGB color;
|
|
|
|
cRGB color;
|
|
|
|
|
|
|
|
|
|
|
|
color.r = Serial.parseInt();
|
|
|
|
::Focus.readColor(color);
|
|
|
|
color.g = Serial.parseInt();
|
|
|
|
|
|
|
|
color.b = Serial.parseInt();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setCrgbAt(idx, color);
|
|
|
|
setCrgbAt(idx, color);
|
|
|
|
idx++;
|
|
|
|
idx++;
|
|
|
|