FastLED 3.9.3
|
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 |
#define BRIGHTNESS 64 |
Definition at line 9 of file ColorPalette.ino.
#define COLOR_ORDER GRB |
Definition at line 11 of file ColorPalette.ino.
#define LED_PIN 5 |
Definition at line 7 of file ColorPalette.ino.
#define LED_TYPE WS2811 |
Definition at line 10 of file ColorPalette.ino.
#define NUM_LEDS 50 |
Definition at line 8 of file ColorPalette.ino.
#define UPDATES_PER_SECOND 100 |
Definition at line 14 of file ColorPalette.ino.
void ChangePalettePeriodically | ( | ) |
Definition at line 84 of file ColorPalette.ino.
void FillLEDsFromPaletteColors | ( | uint8_t | colorIndex | ) |
Definition at line 65 of file ColorPalette.ino.
void loop | ( | ) |
Definition at line 52 of file ColorPalette.ino.
void setup | ( | ) |
Definition at line 42 of file ColorPalette.ino.
void SetupBlackAndWhiteStripedPalette | ( | ) |
Definition at line 117 of file ColorPalette.ino.
void SetupPurpleAndGreenPalette | ( | ) |
Definition at line 130 of file ColorPalette.ino.
void SetupTotallyRandomPalette | ( | ) |
Definition at line 106 of file ColorPalette.ino.
TBlendType currentBlending |
Definition at line 36 of file ColorPalette.ino.
CRGBPalette16 currentPalette |
Definition at line 35 of file ColorPalette.ino.
CRGB leds[NUM_LEDS] |
Definition at line 12 of file ColorPalette.ino.
const TProgmemPalette16 myRedWhiteBluePalette_p PROGMEM |
Definition at line 148 of file ColorPalette.ino.