Advertisement
Billy_Goat_Bob

FASTLED fade to backby

Jan 8th, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. void loop(){
  2.  
  3. for(int i = 0; i < NUM_LEDS; i++) {
  4. leds[i] = CRGB::Blue;
  5. FastLED.show();
  6. delay(30);
  7. }
  8. for(int a = 0; a < NUM_LEDS; a++) {
  9. leds[a].fadeToBlackBy(64);
  10. FastLED.show();
  11. delay(30);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement