FastLED 3.7.8
Loading...
Searching...
No Matches
ColorPalette.ino File Reference

Detailed Description

Demonstrates how to use Color Palettes.

Definition in file ColorPalette.ino.

#include <FastLED.h>

Go to the source code of this file.

Macros

#define LED_PIN   5
 
#define NUM_LEDS   50
 
#define BRIGHTNESS   64
 
#define LED_TYPE   WS2811
 
#define COLOR_ORDER   GRB
 
#define UPDATES_PER_SECOND   100
 

Functions

void setup ()
 
void loop ()
 
void FillLEDsFromPaletteColors (uint8_t colorIndex)
 
void ChangePalettePeriodically ()
 
void SetupTotallyRandomPalette ()
 
void SetupBlackAndWhiteStripedPalette ()
 
void SetupPurpleAndGreenPalette ()
 

Variables

CRGB leds [NUM_LEDS]
 
CRGBPalette16 currentPalette
 
TBlendType currentBlending
 
CRGBPalette16 myRedWhiteBluePalette
 
const TProgmemPalette16 myRedWhiteBluePalette_p PROGMEM
 

Macro Definition Documentation

◆ BRIGHTNESS

#define BRIGHTNESS   64

Definition at line 9 of file ColorPalette.ino.

◆ COLOR_ORDER

#define COLOR_ORDER   GRB

Definition at line 11 of file ColorPalette.ino.

◆ LED_PIN

#define LED_PIN   5

Definition at line 7 of file ColorPalette.ino.

◆ LED_TYPE

#define LED_TYPE   WS2811

Definition at line 10 of file ColorPalette.ino.

◆ NUM_LEDS

#define NUM_LEDS   50

Definition at line 8 of file ColorPalette.ino.

◆ UPDATES_PER_SECOND

#define UPDATES_PER_SECOND   100

Definition at line 14 of file ColorPalette.ino.

Function Documentation

◆ ChangePalettePeriodically()

void ChangePalettePeriodically ( )

Definition at line 84 of file ColorPalette.ino.

◆ FillLEDsFromPaletteColors()

void FillLEDsFromPaletteColors ( uint8_t colorIndex)

Definition at line 65 of file ColorPalette.ino.

◆ loop()

void loop ( )

Definition at line 52 of file ColorPalette.ino.

◆ setup()

void setup ( )

Definition at line 42 of file ColorPalette.ino.

◆ SetupBlackAndWhiteStripedPalette()

void SetupBlackAndWhiteStripedPalette ( )

Definition at line 117 of file ColorPalette.ino.

◆ SetupPurpleAndGreenPalette()

void SetupPurpleAndGreenPalette ( )

Definition at line 130 of file ColorPalette.ino.

◆ SetupTotallyRandomPalette()

void SetupTotallyRandomPalette ( )

Definition at line 106 of file ColorPalette.ino.

Variable Documentation

◆ currentBlending

TBlendType currentBlending

Definition at line 36 of file ColorPalette.ino.

◆ currentPalette

CRGBPalette16 currentPalette

Definition at line 35 of file ColorPalette.ino.

◆ leds

CRGB leds[NUM_LEDS]

Definition at line 12 of file ColorPalette.ino.

◆ PROGMEM

const TProgmemPalette16 myRedWhiteBluePalette_p PROGMEM