Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <FastLED.h>
- #define NUM_LEDS 722
- #define FRAMES_PER_SECOND 120
- #define DATA_PIN 6
- CRGB leds[NUM_LEDS];
- void setup() {
- FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS); // GRB ordering is typical
- FastLED.setBrightness(100);
- }
- void loop() {
- // Turn the LED on, then pause
- for(int x = 0;x < NUM_LEDS; x++){
- leds[x] = CRGB::Green;
- FastLED.show();
- delay(1);
- }
- // delay(10000);
- FastLED.delay(1000/FRAMES_PER_SECOND);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement