You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
279 B
Plaintext
12 lines
279 B
Plaintext
2 years ago
|
for(int16_t i = 0; i < 255*10; i+=2)
|
||
|
{
|
||
|
HAL_Delay(1);
|
||
|
ws2812_data_set(i/255, i%255, 0, 0);
|
||
|
ws2812_updata();
|
||
|
}
|
||
|
for(int16_t i = 255*10; i > 0 ; i-=2)
|
||
|
{
|
||
|
HAL_Delay(1);
|
||
|
ws2812_data_set(i/255, i%255, 0, 0);
|
||
|
ws2812_updata();
|
||
|
}
|