Beispiel #1
0
 static void UpdateHue(StreamingGroup streamingLights)
 {
     do
     {
         var lights = streamingLights.OrderBy(x => new Guid());
         foreach (StreamingLight light in lights)
         {
             int colInt = streamingLights.IndexOf(light) % 4;
             light.SetState(new RGBColor(colors[colInt].R, colors[colInt].G, colors[colInt].B), 1);
             Thread.Sleep(5);
         }
         //Thread.Sleep(50);
     } while (running);
 }