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