Advertisement
Guest User

FASTLED_VW_SYMBOL_BLUE_WHITE_DOT

a guest
Jan 8th, 2021
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <FastLED.h>
  2. #define NUM_LEDS 50
  3. #define MAX_MA 2000
  4. #define CHIPSET WS2812B
  5. #define DATA 3
  6.  
  7. CRGBArray<NUM_LEDS> leds;
  8.  
  9. void setup() {
  10.  
  11. FastLED.addLeds<CHIPSET, DATA>(leds, NUM_LEDS);
  12. }
  13. // put your setup code here, to run once:
  14.  
  15.  
  16. void loop() {
  17. for (int i = 0; i < NUM_LEDS; i++) {
  18.  
  19. fill_solid( &(leds[i]), NUM_LEDS, CRGB::Blue );
  20.  
  21. leds.fadeToBlackBy(100);
  22.  
  23. leds[i] = CRGB::White;
  24.  
  25.  
  26. FastLED.delay(64);
  27.  
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement