Ejemplo n.º 1
0
        public virtual void SendLedAnimationCommand(ILedAnimation ledAnimatoin)
        {
            int    freq    = FloatToInt32Converter.Convert(ledAnimatoin.FrequencyInHz);
            string message = string.Format("{0},{1},{2}", (int)ledAnimatoin.Animation, freq, ledAnimatoin.DurationInSeconds);
            string command = CommandFormatter.CreateCommand(LedCommand, message);

            CommandQueue.Enqueue(command);
        }
Ejemplo n.º 2
0
 public void SendLedAnimationCommand(ILedAnimation ledAnimation)
 {
     CommandWorker.SendLedAnimationCommand(ledAnimation);
 }