-
-
Save thalesfsp/5ffe04d2f245487ae14884f25af73242 to your computer and use it in GitHub Desktop.
This file contains 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(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment