mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-16 20:52:57 +08:00
47b44229bf
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);