예제 #1
0
        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);
        }
예제 #2
0
 public static void SetPixelColor(int index, WS2812b newPixel)
 {
     leds[index] = newPixel;
 }
예제 #3
0
 public static void SetPixelColor(int index, WS2812b newPixel)
 {
     Core.animationLeds[index] = newPixel;
 }