Rename ctrl script and simplify the commands

This commit is contained in:
Aaron Mueller 2014-06-13 00:35:05 +02:00
parent ee489ba10b
commit ed8bee4df2
2 changed files with 4 additions and 4 deletions

View file

@ -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");
}

View file