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; }
public static extern int ws2811_render(ref Ws281x_t ws2811);
public static extern int ws2811_wait(ref Ws281x_t ws2811);
public static extern void ws2811_fini(ref Ws281x_t ws2811);