override protected void ExecuteCommand(ArduinoCommand command, ExecutionArguments xargs)
        {
            switch (command.CommandAlias.ToLower())
            {
            case "blinktest":
                Blink(10, 100);
                break;

            case "blink":
                int repeat = xargs.GetInt(0, 1);
                int delay  = xargs.GetInt(1, 1000);
                Blink(repeat, delay);
                break;

            default:
                base.SendCommand(command, xargs);
                break;
            }
        }
Exemple #2
0
        protected override void ExecuteCommand(ArduinoCommand command, ExecutionArguments xargs)
        {
            switch (command.CommandAlias.ToLower())
            {
            case "silence":
                int duration = xargs.GetInt(0, 10);
                Silence(duration);
                break;

            case "unsilence":
                Unsilence();
                break;

            default:
                base.ExecuteCommand(command, xargs);
                break;
            }
        }