Advertisement
TopHatRaver

FastLED_Version

Aug 12th, 2024
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <FastLED.h>
  2.  
  3. #define NUM_LEDS 722
  4. #define FRAMES_PER_SECOND  120
  5. #define DATA_PIN 6
  6.  
  7. CRGB leds[NUM_LEDS];
  8.  
  9. void setup() {
  10.     FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);  // GRB ordering is typical
  11.     FastLED.setBrightness(100);
  12. }
  13.  
  14. void loop() {
  15.   // Turn the LED on, then pause
  16.   for(int x = 0;x < NUM_LEDS; x++){
  17.     leds[x] = CRGB::Green;
  18.   FastLED.show();
  19.   delay(1);
  20.   }
  21.   // delay(10000);
  22.   FastLED.delay(1000/FRAMES_PER_SECOND);
  23.  
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement