Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void final_0(String color, int duration)
- {
- int delay_ms = 50; // ms
- int delay_0_ms = 10; // ms
- unsigned long timer = millis();
- CRGB parsed_color = get_color(color);
- while (millis() - timer < duration)
- {
- for (int j = 0; j < NUM_LEDS; j++)
- {
- leds[j] = parsed_color;
- FastLED.show();
- delay(delay_0_ms);
- }
- turn_off_leds();
- delay(delay_ms);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement