Guest User

Untitled

a guest
Apr 25th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <FastLED.h>
  2. #define DATA_PIN 18
  3.  
  4. constexpr auto NUM_LEDS = 8*8;
  5. CRGB leds[NUM_LEDS];
  6.  
  7. void setup() {
  8. // put your setup code here, to run once:
  9. FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
  10.  
  11. for (auto i = 0; i < NUM_LEDS; ++i)
  12. leds[i] = CRGB::Black;
  13. }
  14.  
  15. void loop() {
  16. for (int dot = 0; dot < NUM_LEDS; ++dot) {
  17. leds[dot] = CRGB::Blue;
  18. FastLED.show();
  19. // clear this led for the next time around the loop
  20. leds[dot] = CRGB::Black;
  21. //delay(30);
  22. }
  23. }
Add Comment
Please, Sign In to add comment