-
Couldn't load subscription status.
- Fork 913
Open
Description
I have a board with 3 W2812 leds on one GPIO. I created an easy helper to show on every led another state, even different interval was possible. Then I found your led_indicator and wanted to transition to it, because it's an official library. After some tests I found, that I can't combine different states.
static const blink_step_t rgb_blink_yellow[] = {
{LED_BLINK_RGB, SET_IRGB(0, MAX_VALUE, MAX_VALUE, 0), 200},
{LED_BLINK_RGB, SET_IRGB(0, 0, 0, 0), 200},
{LED_BLINK_LOOP, 0, 0},
};
static const blink_step_t rgb_solid_green[] = {
{LED_BLINK_RGB, SET_IRGB(1, 0, MAX_VALUE, 0), 200},
{LED_BLINK_LOOP, 0, 0},
};
I'm not able to call led_indicator_start() for both of them and show a yellow and green led. The last call will be ignored and if I use led_indicator_preempt_start() the first one will be deleted.
How can I combine both states? Is it even possible?
Metadata
Metadata
Assignees
Labels
No labels