Guest User

FastLED DOTSTAR

a guest
Apr 11th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include "FastLED.h"
  2. #define NUM_LEDS 60
  3. CRGB leds[NUM_LEDS];
  4. void setup() { FastLED.addLeds<DOTSTAR, 16, 15, RGB>(leds, NUM_LEDS);  }
  5. void loop() {
  6.     leds[0] = CRGB::White; FastLED.show(); delay(100);
  7.     leds[0] = CRGB::Black; FastLED.show(); delay(100);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment