FastLED 3.9.7
Loading...
Searching...
No Matches
DemoReel100.ino File Reference

Detailed Description

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
 

Macro Definition Documentation

◆ ARRAY_SIZE

#define ARRAY_SIZE ( A)    (sizeof(A) / sizeof((A)[0]))

Definition at line 61 of file DemoReel100.ino.

◆ BRIGHTNESS

#define BRIGHTNESS   96

Definition at line 24 of file DemoReel100.ino.

◆ COLOR_ORDER

#define COLOR_ORDER   GRB

Definition at line 20 of file DemoReel100.ino.

◆ DATA_PIN

#define DATA_PIN   3

Definition at line 17 of file DemoReel100.ino.

◆ FRAMES_PER_SECOND

#define FRAMES_PER_SECOND   120

Definition at line 25 of file DemoReel100.ino.

◆ LED_TYPE

#define LED_TYPE   WS2811

Definition at line 19 of file DemoReel100.ino.

◆ NUM_LEDS

#define NUM_LEDS   64

Definition at line 21 of file DemoReel100.ino.

Typedef Documentation

◆ SimplePatternList

typedef void(* SimplePatternList[])()

Definition at line 40 of file DemoReel100.ino.

Function Documentation

◆ addGlitter()

void addGlitter ( fract8 chanceOfGlitter)

Definition at line 82 of file DemoReel100.ino.

◆ bpm()

void bpm ( )

Definition at line 105 of file DemoReel100.ino.

◆ confetti()

void confetti ( )

Definition at line 89 of file DemoReel100.ino.

◆ juggle()

void juggle ( )

Definition at line 116 of file DemoReel100.ino.

◆ loop()

void loop ( )

Definition at line 46 of file DemoReel100.ino.

◆ nextPattern()

void nextPattern ( )

Definition at line 63 of file DemoReel100.ino.

◆ rainbow()

void rainbow ( )

Definition at line 69 of file DemoReel100.ino.

◆ rainbowWithGlitter()

void rainbowWithGlitter ( )

Definition at line 75 of file DemoReel100.ino.

◆ setup()

void setup ( )

Definition at line 27 of file DemoReel100.ino.

◆ sinelon()

void sinelon ( )

Definition at line 97 of file DemoReel100.ino.

Variable Documentation

◆ gCurrentPatternNumber

uint8_t gCurrentPatternNumber = 0

Definition at line 43 of file DemoReel100.ino.

◆ gHue

uint8_t gHue = 0

Definition at line 44 of file DemoReel100.ino.

◆ gPatterns

SimplePatternList gPatterns = { rainbow, rainbowWithGlitter, confetti, sinelon, juggle, bpm }

Definition at line 41 of file DemoReel100.ino.

◆ leds

CRGB leds[NUM_LEDS]

Definition at line 22 of file DemoReel100.ino.