Advertisement
steveof2620

FastLED Flicker

Dec 15th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void flicker() {
  2.   for (int i = 0; i < 100; i++) {
  3.     if (random(2) == 1) {
  4.       //set the colors here
  5.       FastLED.show();
  6.     } else {
  7.       FastLED.clear();
  8.       FastLED.show();
  9.     }
  10.     delay(random(100));
  11.   }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement