Esempio 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;
        }
Esempio n. 2
0
 public static extern int ws2811_render(ref Ws281x_t ws2811);
Esempio n. 3
0
 public static extern int ws2811_wait(ref Ws281x_t ws2811);
Esempio n. 4
0
 public static extern void ws2811_fini(ref Ws281x_t ws2811);