FastLED 3.9.7
|
FastLED "100 lines of code" demo reel, showing off some effects.
Definition in file DemoReel100.ino.
#include <FastLED.h>
Go to the source code of this file.
Macros | |
#define | DATA_PIN 3 |
#define | LED_TYPE WS2811 |
#define | COLOR_ORDER GRB |
#define | NUM_LEDS 64 |
#define | BRIGHTNESS 96 |
#define | FRAMES_PER_SECOND 120 |
#define | ARRAY_SIZE(A) (sizeof(A) / sizeof((A)[0])) |
Typedefs | |
typedef void(* | SimplePatternList[]) () |
Functions | |
void | setup () |
void | loop () |
void | nextPattern () |
void | rainbow () |
void | rainbowWithGlitter () |
void | addGlitter (fract8 chanceOfGlitter) |
void | confetti () |
void | sinelon () |
void | bpm () |
void | juggle () |
Variables | |
CRGB | leds [NUM_LEDS] |
SimplePatternList | gPatterns = { rainbow, rainbowWithGlitter, confetti, sinelon, juggle, bpm } |
uint8_t | gCurrentPatternNumber = 0 |
uint8_t | gHue = 0 |
#define ARRAY_SIZE | ( | A | ) | (sizeof(A) / sizeof((A)[0])) |
Definition at line 61 of file DemoReel100.ino.
#define BRIGHTNESS 96 |
Definition at line 24 of file DemoReel100.ino.
#define COLOR_ORDER GRB |
Definition at line 20 of file DemoReel100.ino.
#define DATA_PIN 3 |
Definition at line 17 of file DemoReel100.ino.
#define FRAMES_PER_SECOND 120 |
Definition at line 25 of file DemoReel100.ino.
#define LED_TYPE WS2811 |
Definition at line 19 of file DemoReel100.ino.
#define NUM_LEDS 64 |
Definition at line 21 of file DemoReel100.ino.
typedef void(* SimplePatternList[])() |
Definition at line 40 of file DemoReel100.ino.
void addGlitter | ( | fract8 | chanceOfGlitter | ) |
Definition at line 82 of file DemoReel100.ino.
void bpm | ( | ) |
Definition at line 105 of file DemoReel100.ino.
void confetti | ( | ) |
Definition at line 89 of file DemoReel100.ino.
void juggle | ( | ) |
Definition at line 116 of file DemoReel100.ino.
void loop | ( | ) |
Definition at line 46 of file DemoReel100.ino.
void nextPattern | ( | ) |
Definition at line 63 of file DemoReel100.ino.
void rainbow | ( | ) |
Definition at line 69 of file DemoReel100.ino.
void rainbowWithGlitter | ( | ) |
Definition at line 75 of file DemoReel100.ino.
void setup | ( | ) |
Definition at line 27 of file DemoReel100.ino.
void sinelon | ( | ) |
Definition at line 97 of file DemoReel100.ino.
uint8_t gCurrentPatternNumber = 0 |
Definition at line 43 of file DemoReel100.ino.
uint8_t gHue = 0 |
Definition at line 44 of file DemoReel100.ino.
SimplePatternList gPatterns = { rainbow, rainbowWithGlitter, confetti, sinelon, juggle, bpm } |
Definition at line 41 of file DemoReel100.ino.
CRGB leds[NUM_LEDS] |
Definition at line 22 of file DemoReel100.ino.