FastLED 3.9.7
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 ChangePalettePeriodically ()
 
void FillLEDsFromPaletteColors (uint8_t colorIndex)
 
void SetupPurpleAndGreenPalette ()
 
void SetupTotallyRandomPalette ()
 
void SetupBlackAndWhiteStripedPalette ()
 
void setup ()
 
void loop ()
 

Variables

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

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 95 of file ColorPalette.ino.

◆ FillLEDsFromPaletteColors()

void FillLEDsFromPaletteColors ( uint8_t colorIndex)

Definition at line 76 of file ColorPalette.ino.

◆ loop()

void loop ( )

Definition at line 63 of file ColorPalette.ino.

◆ setup()

void setup ( )

Definition at line 53 of file ColorPalette.ino.

◆ SetupBlackAndWhiteStripedPalette()

void SetupBlackAndWhiteStripedPalette ( )

Definition at line 128 of file ColorPalette.ino.

◆ SetupPurpleAndGreenPalette()

void SetupPurpleAndGreenPalette ( )

Definition at line 141 of file ColorPalette.ino.

◆ SetupTotallyRandomPalette()

void SetupTotallyRandomPalette ( )

Definition at line 117 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.

◆ myRedWhiteBluePalette_p

const TProgmemPalette16 myRedWhiteBluePalette_p