moving blinking led

This commit is contained in:
Jonathan Wyss 2024-02-27 22:02:43 +01:00
parent e6dba2285a
commit 471f54b81f

2
main.c
View File

@ -48,7 +48,7 @@ int main (void)
}
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);
_delay_ms(1);