Skip to content

Instantly share code, notes, and snippets.

@jasoncoon
Created February 12, 2017 14:25
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jasoncoon/89643384f63551eea87fb8c4e27d527b to your computer and use it in GitHub Desktop.
Save jasoncoon/89643384f63551eea87fb8c4e27d527b 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();
}
@margyle
Copy link

margyle commented Sep 18, 2017

Thanks for this code, really simplified the fading process for me!

@BILLGLENN
Copy link

It's still helpful ! Thanks.

@hellwoodwen
Copy link

nice stuff

@tophat17
Copy link

tophat17 commented Mar 8, 2020

Thanks mate.

@dw-elec-kavirajkathirvel

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment