Skip to content

Instantly share code, notes, and snippets.

@jasoncoon
Created February 12, 2017 14:25
Show Gist options
  • Select an option

  • Save jasoncoon/89643384f63551eea87fb8c4e27d527b to your computer and use it in GitHub Desktop.

Select an option

Save jasoncoon/89643384f63551eea87fb8c4e27d527b to your computer and use it in GitHub Desktop.

Revisions

  1. jasoncoon created this gist Feb 12, 2017.
    21 changes: 21 additions & 0 deletions FastLED-Slow-Fade.ino
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    #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();
    }