Skip to content

Instantly share code, notes, and snippets.

@thalesfsp
Forked from jasoncoon/FastLED-Slow-Fade.ino
Created June 23, 2020 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thalesfsp/5ffe04d2f245487ae14884f25af73242 to your computer and use it in GitHub Desktop.
Save thalesfsp/5ffe04d2f245487ae14884f25af73242 to your computer and use it in GitHub Desktop.
#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