Ejemplo n.º 1
0
        public NeoPixelFrameBase(int _pixelCount, string name) : base(name)
        {
            pixelCount = _pixelCount;
            neoPixel   = new NeoPixelSPI(Pins.GPIO_PIN_D10, SPI.SPI_module.SPI1);
            Frame      = new Pixel[pixelCount];

            // init frame to all black - specifically not null
            FrameClear();
        }
        public NeoPixelFrameBase(int _pixelCount, string name)
            : base(name)
        {
            pixelCount = _pixelCount;
            neoPixel = new NeoPixelSPI(Pins.GPIO_PIN_D10, SPI.SPI_module.SPI1);
            Frame = new Pixel[pixelCount];

            //lazy initialise in the black/blank in the blink method
            blinkFrame = new Pixel[pixelCount];

            // init frame to all black - specifically not null
            FrameClear();
        }