Created
February 12, 2017 14:25
-
-
Save jasoncoon/89643384f63551eea87fb8c4e27d527b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "FastLED.h" | |
#define NUM_LEDS 60 | |
#define DATA_PIN 3 | |
CRGB leds[NUM_LEDS]; | |
uint8_t hue = 0; | |
void setup() { | |
FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS); | |
} | |
void loop() { | |
EVERY_N_SECONDS(10) { | |
hue++; | |
} | |
fill_solid(leds, NUM_LEDS, CHSV(hue, 255, 255)); | |
FastLED.show(); | |
} |
It's still helpful ! Thanks.
nice stuff
Thanks mate.
thank you
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this code, really simplified the fading process for me!