Rename ctrl script and simplify the commands
This commit is contained in:
parent
ee489ba10b
commit
ed8bee4df2
2 changed files with 4 additions and 4 deletions
|
@ -18,10 +18,10 @@ void setup() {
|
|||
}
|
||||
|
||||
void process_command(String command, String param) {
|
||||
if (command == "fade-to") fade_to(param.toInt());
|
||||
if (command == "led-stripe") toggle_stripes(param);
|
||||
if (command == "switch-on") switch_230("on", param);
|
||||
if (command == "switch-off") switch_230("off", param);
|
||||
if (command == "fade") fade_to(param.toInt());
|
||||
if (command == "led") toggle_stripes(param);
|
||||
if (command == "on") switch_230("on", param);
|
||||
if (command == "off") switch_230("off", param);
|
||||
|
||||
Serial.println("Ok");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue