Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <FastLED.h>
- #define DATA_PIN 5
- #define NUM_LEDS 6
- CRGB leds[NUM_LEDS];
- int currentLed[NUM_LEDS*3];
- void setup(){
- FastLED.addLeds<WS2811, DATA_PIN, BRG>(leds, NUM_LEDS);
- }
- currentLed[0] = leds[0].r;
- currentLed[1] = leds[0].g;
- currentLed[2] = leds[0].b;
- //etc.
- void loop(){
- /*code here*/
- }
Advertisement
Add Comment
Please, Sign In to add comment