• Thomas Soëte's avatar
    ws2812 data buffer · 47b44229
    Thomas Soëte authored
    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);
    47b44229
ws2812.c 9.33 KB