private static void LoopExample(int totalLeds, HUE2AmbientDeviceController controller) { for (int j = 0; j <= 5; j++) { Color[] newColors = new Color[totalLeds]; for (int i = 0; i < newColors.Length; i++) { newColors[i] = Color.FromArgb(255, 0, 0); if (i == 0) { newColors[totalLeds - 1] = Color.FromArgb(0, 0, 0); } else { newColors[i - 1] = Color.FromArgb(0, 0, 0); } controller.SetLeds(newColors, HUE2AmbientDeviceController.LayoutType.Linear); } } }
private static void AllExample(Color color, HUE2AmbientDeviceController controller) { controller.SetLeds(color); }