moving blinking led
This commit is contained in:
parent
e6dba2285a
commit
471f54b81f
2
main.c
2
main.c
@ -48,7 +48,7 @@ int main (void)
|
|||||||
}
|
}
|
||||||
for(colorb=256;colorb>0;colorb--)
|
for(colorb=256;colorb>0;colorb--)
|
||||||
{
|
{
|
||||||
led_bar1[i].r=10;led_bar1[i].g=colorb;led_bar1[i].b=0;
|
led_bar1[i].r=0;led_bar1[i].g=colorb;led_bar1[i].b=10;
|
||||||
ws2812_sendarray((uint8_t *)led_bar1,8*3);
|
ws2812_sendarray((uint8_t *)led_bar1,8*3);
|
||||||
_delay_ms(1);
|
_delay_ms(1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user