From ed8bee4df208e6b47dedee7113fdbaf3ce42c302 Mon Sep 17 00:00:00 2001 From: Aaron Mueller Date: Fri, 13 Jun 2014 00:35:05 +0200 Subject: [PATCH] Rename ctrl script and simplify the commands --- emori.ino | 8 ++++---- ctrl.rb => emori.rb | 0 2 files changed, 4 insertions(+), 4 deletions(-) rename ctrl.rb => emori.rb (100%) diff --git a/emori.ino b/emori.ino index c8178f8..b31bbf5 100644 --- a/emori.ino +++ b/emori.ino @@ -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"); } diff --git a/ctrl.rb b/emori.rb similarity index 100% rename from ctrl.rb rename to emori.rb