FastLED 3.9.7
|
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 |
#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 95 of file ColorPalette.ino.
void FillLEDsFromPaletteColors | ( | uint8_t | colorIndex | ) |
Definition at line 76 of file ColorPalette.ino.
void loop | ( | ) |
Definition at line 63 of file ColorPalette.ino.
void setup | ( | ) |
Definition at line 53 of file ColorPalette.ino.
void SetupBlackAndWhiteStripedPalette | ( | ) |
Definition at line 128 of file ColorPalette.ino.
void SetupPurpleAndGreenPalette | ( | ) |
Definition at line 141 of file ColorPalette.ino.
void SetupTotallyRandomPalette | ( | ) |
Definition at line 117 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 |
Definition at line 159 of file ColorPalette.ino.