ws2812.init()
local i, buffer = 0, ws2812.newBuffer(60, 3); buffer:fill(0, 0, 0); tmr.alarm(0, 50, 1, function()
i=i+1 -- begins to be included from the first LED, if the change to i = i - 1, starting with the last light of the LED
buffer:set(i%buffer:size()+1, 0, 0, 255)
ws2812.write(buffer)
end)
Please tell me how to make at the same time on both sides?