Guest User

Untitled

a guest
Jan 13th, 2016
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <FastLED.h>
  2.  
  3. #define DATA_PIN 5
  4. #define NUM_LEDS 6
  5.  
  6. CRGB leds[NUM_LEDS];
  7. int currentLed[NUM_LEDS*3];
  8.  
  9. void setup(){
  10.     FastLED.addLeds<WS2811, DATA_PIN, BRG>(leds, NUM_LEDS);
  11. }
  12.  
  13. currentLed[0] = leds[0].r;
  14. currentLed[1] = leds[0].g;
  15. currentLed[2] = leds[0].b;
  16. //etc.
  17.  
  18. void loop(){
  19.   /*code here*/
  20. }
Advertisement
Add Comment
Please, Sign In to add comment