Thomas Soëte 47b44229bf ws2812 data buffer
To create a size led long buffer:
buffer = ws2812.newBuffer(size);

To fill the buffer:
buffer:fill(g, r, b)

To get a particular led color:
g, r, b = buffer:get(index)

To set a particular led color:
buffer:set(index, g, r, b);

To send the buffer:
buffer:write(pin);
2016-01-18 17:21:08 +01:00
..
2016-01-13 22:39:15 -05:00
2016-01-18 17:21:08 +01:00
2015-03-31 23:38:28 +08:00
2015-03-20 19:42:10 +08:00
2015-12-15 09:35:20 +03:00