예제 #1
0
        public static LEDInstance Flash(LEDColor color, int blinkCount = 0)
        {
            var instance = new LEDInstance(Guid.NewGuid());

            if (!instance.Update(color, blinkCount))
            {
                Util.ThrowExceptionForLastErrno();
            }
            return(instance);
        }
예제 #2
0
 public static LEDInstance Flash(LEDColor color, int blinkCount = 0)
 {
     var instance = new LEDInstance(Guid.NewGuid());
     if (!instance.Update(color, blinkCount))
     {
         Util.ThrowExceptionForLastErrno();
     }
     return instance;
 }