color and timing (ws2812_i2s) (#493)
This commit is contained in:
parent
a0f846013c
commit
962196ef1d
2 changed files with 9 additions and 6 deletions
|
@ -41,7 +41,7 @@ static int fix_index(int index)
|
|||
|
||||
static ws2812_pixel_t next_colour()
|
||||
{
|
||||
ws2812_pixel_t colour = {0, 0, 0, 0};
|
||||
ws2812_pixel_t colour = { {0, 0, 0, 0} };
|
||||
colour.red = rand() % 256;
|
||||
colour.green = rand() % 256;
|
||||
colour.blue = rand() % 256;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue