public static async void run() { demo = true; while (demo) { UpdateLights.addDevice(Names[r.Next(0, Names.Count)], $"{randomValues()},{randomValues()},{randomValues()},{randomValues()},"); Console.WriteLine($"{UpdateLights.NumberOfDevices}, {UpdateLights.StackSize}"); await Task.Delay(AFXCore.UpdateInterval); } }
public static void setColorToLight(string Name, string ColorCSV) { UpdateLights.addDevice(Name, ColorCSV); }