Exemplo n.º 1
0
        internal Ws281x_t CreateDataStructure()
        {
            var data = new Ws281x_t
            {
                freq = Frequency,
                dmanum = Dma,
                channel = new [] {
                        new Ws281x_channel_t {
                            gpionum = GpioPin,
                            count = LedCount,
                            invert = Invert ? 1 : 0,
                            brightness = Brightness,
                        },
                        new Ws281x_channel_t {
                        },
                    }
            };

            return data;
        }
Exemplo n.º 2
0
 public static extern int ws2811_render(ref Ws281x_t ws2811);
Exemplo n.º 3
0
 public static extern int ws2811_wait(ref Ws281x_t ws2811);
Exemplo n.º 4
0
 public static extern void ws2811_fini(ref Ws281x_t ws2811);