Blink() public method

Blink the LED.
public Blink ( RgbColor color, int repeats = 1, int delay = 500 ) : void
color RgbColor Must be in #rrggbb format or named color ("red", "green", "blue")
repeats int How many times to repeat (default 1)
delay int Delay delay between on/off sequences (default 500)
return void
Ejemplo n.º 1
0
 /// <summary>
 /// Helper for doing ad-hoc testing
 /// </summary>
 public static void Main()
 {
     // add code here
     #if false
     var bs = new BlinkStick();
     bs.Verbosity = Verbosity.Debug;
     bs.Blink(Color.Red, 1000);
     #endif
 }
Ejemplo n.º 2
0
 private static void Blink(BlinkStick stick, Color color, int duration)
 {
     stick.Blink(color, duration);
 }