public void OffFor(int duration) { ControlPlane.Command cmd = new ControlPlane.Command(ControlPlane.CommandLedOffFor, Index); cmd.AppendParameter(duration); control.SendCommand(cmd); State = ControlPlane.On; // Off temporarily Blinking = false; }
public void StartBlinking(int duration) { ControlPlane.Command cmd = new ControlPlane.Command(ControlPlane.CommandLedBlink, Index); cmd.AppendParameter(duration); control.SendCommand(cmd); State = ControlPlane.On; Blinking = true; }