Advertisement
Guest User

Untitled

a guest
Nov 8th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <FastLED.h>
  2. #define NUM_LEDS    284
  3. #define BRIGHTNESS  255
  4. CRGB leds[NUM_LEDS];
  5.  
  6. void setup() {
  7.     FastLED.addLeds<WS2811, 5, BRG>(leds, 0, 100);
  8.     FastLED.addLeds<WS2812B, 7, GRB>(leds, 100, 144);
  9.     FastLED.addLeds<WS2811, 9, BRG>(leds, 244, 40);  
  10.     FastLED.setBrightness(  BRIGHTNESS );
  11. }
  12.  
  13. void loop() {
  14. fill_gradient(leds, NUM_LEDS, CHSV(12,255,255), CHSV(120,255,255), FORWARD_HUES);
  15. FastLED.show();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement