FluffyWishbone

11-13-12-13

Nov 6th, 2025
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | Source Code | 0 0
  1. #include <FastLED.h>
  2. //#define NUM_LEDS 8 //Comment Out when I want 16 (2 strips)
  3. #define NUM_LEDS 16
  4. CRGB leds[NUM_LEDS];
  5. void setup() {
  6. delay(500); // power-up safety delay
  7. FastLED.addLeds<HD108,11,13,RGB>(leds,8); //First Strip of 8
  8. FastLED.addLeds<HD108,12,13,RGB>(leds,8,8); // Uncomment when I want 16 (2 strips)
  9. FastLED.clear();
  10. FastLED.setBrightness(10);
  11. FastLED.show();
  12. }
  13.  
  14. void loop() {
  15. for(int i=0;i<NUM_LEDS;i++) {
  16. leds[i]=CRGB::Green;
  17. FastLED.show();
  18. FastLED.delay(150);
  19. fadeToBlackBy(leds,NUM_LEDS,100);
  20. }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment