|
|
@ -179,8 +179,7 @@ LEDControl_::focusHook (const char *command) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
switch (subCommand) {
|
|
|
|
switch (subCommand) {
|
|
|
|
case AT:
|
|
|
|
case AT: {
|
|
|
|
{
|
|
|
|
|
|
|
|
uint8_t idx = Serial.parseInt();
|
|
|
|
uint8_t idx = Serial.parseInt();
|
|
|
|
|
|
|
|
|
|
|
|
if (Serial.peek() == '\n') {
|
|
|
|
if (Serial.peek() == '\n') {
|
|
|
@ -199,8 +198,7 @@ LEDControl_::focusHook (const char *command) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case SETALL:
|
|
|
|
case SETALL: {
|
|
|
|
{
|
|
|
|
|
|
|
|
cRGB c;
|
|
|
|
cRGB c;
|
|
|
|
|
|
|
|
|
|
|
|
c.r = Serial.parseInt();
|
|
|
|
c.r = Serial.parseInt();
|
|
|
@ -211,8 +209,7 @@ LEDControl_::focusHook (const char *command) {
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case MODE:
|
|
|
|
case MODE: {
|
|
|
|
{
|
|
|
|
|
|
|
|
char peek = Serial.peek();
|
|
|
|
char peek = Serial.peek();
|
|
|
|
if (peek == '\n') {
|
|
|
|
if (peek == '\n') {
|
|
|
|
Serial.println(LEDControl.get_mode());
|
|
|
|
Serial.println(LEDControl.get_mode());
|
|
|
@ -229,8 +226,7 @@ LEDControl_::focusHook (const char *command) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case THEME:
|
|
|
|
case THEME: {
|
|
|
|
{
|
|
|
|
|
|
|
|
if (Serial.peek() == '\n') {
|
|
|
|
if (Serial.peek() == '\n') {
|
|
|
|
for (uint8_t idx = 0; idx < LED_COUNT; idx++) {
|
|
|
|
for (uint8_t idx = 0; idx < LED_COUNT; idx++) {
|
|
|
|
cRGB c = LEDControl.led_get_crgb_at(idx);
|
|
|
|
cRGB c = LEDControl.led_get_crgb_at(idx);
|
|
|
|