public static int CalculateNumberOfLeds() //poprawić, { int temp = buffer.Length / 3; leds = new WS2812b[temp]; //animationLeds = new WS2812b[temp]; for (int i = 0; i < temp; i++) { leds[i] = new WS2812b(); //animationLeds[i] = new WS2812b(); } return(temp); }
public static void SetPixelColor(int index, WS2812b newPixel) { leds[index] = newPixel; }
public static void SetPixelColor(int index, WS2812b newPixel) { Core.animationLeds[index] = newPixel; }