-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Hello,
I was using the code from "pio/ws2812" without problems and then I switch to the new "colored status led" library with the sdk 2.2.0.
- "colored_status_led_set_on_with_color" don't change the color if the LED is already ON. Why not but it's not describe in the documentation.
- I created a "colored_status_led_change_color" function to handle color change, but it was not working until I add a sleep between "colored_status_led_set_state" and "colored_status_led_set_on_with_color". This timing constraint is not in the documentation. Is it a bug ?
- Adding a "colored_status_led_change_color" directly in the library could be a good addition :)
The working code:
bool colored_status_led_change_color(uint32_t color)
{
colored_status_led_set_state(false);
sleep_us(100);
return colored_status_led_set_on_with_color(color);
}
Thanks
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working