gioreva

Untitled

Mar 20th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #define NUM_STRIPS 2
  2. #define NUM_LEDS_PER_STRIP 500
  3.  
  4. #include "FastLED.h"
  5.  
  6. FASTLED_USING_NAMESPACE
  7.  
  8. #define NUM_LEDS NUM_LEDS_PER_STRIP * NUM_STRIPS
  9. #define LED_TYPE WS2812
  10.  
  11. CRGB leds[NUM_STRIPS * NUM_LEDS_PER_STRIP];
  12.  
  13. void setup() {
  14. FastLED.addLeds<LED_TYPE, 13>(leds, 0, NUM_LEDS_PER_STRIP);
  15. }
  16.  
  17. void loop()
  18. {
  19. for( int f = 0; f < 160; f++){
  20. leds[f] = CRGB(f, f, f);
  21. }
  22. delay(100);
  23. FastLED.show();
  24. FastLED.clearData();
  25. delay(100);
  26. FastLED.show();
  27. }
Add Comment
Please, Sign In to add comment