FastLED 3.9.7
|
Twinkling "holiday" lights that fade in and out.
Definition in file TwinkleFox.ino.
#include "FastLED.h"
Go to the source code of this file.
Macros | |
#define | NUM_LEDS 100 |
#define | LED_TYPE WS2811 |
#define | COLOR_ORDER GRB |
#define | DATA_PIN 3 |
#define | VOLTS 12 |
#define | MAX_MA 4000 |
#define | TWINKLE_SPEED 4 |
#define | TWINKLE_DENSITY 5 |
#define | SECONDS_PER_PALETTE 30 |
#define | AUTO_SELECT_BACKGROUND_COLOR 0 |
#define | COOL_LIKE_INCANDESCENT 1 |
#define | Holly_Green 0x00580c |
#define | Holly_Red 0xB00402 |
#define | HALFFAIRY ((CRGB::FairyLight & 0xFEFEFE) / 2) |
#define | QUARTERFAIRY ((CRGB::FairyLight & 0xFCFCFC) / 4) |
#define | C9_Red 0xB80400 |
#define | C9_Orange 0x902C02 |
#define | C9_Green 0x046002 |
#define | C9_Blue 0x070758 |
#define | C9_White 0x606820 |
#define | Ice_Blue1 0x0C1040 |
#define | Ice_Blue2 0x182080 |
#define | Ice_Blue3 0x5080C0 |
Functions | |
void | setup () |
void | loop () |
void | drawTwinkles (CRGBSet &L) |
CRGB | computeOneTwinkle (uint32_t ms, uint8_t salt) |
uint8_t | attackDecayWave8 (uint8_t i) |
void | coolLikeIncandescent (CRGB &c, uint8_t phase) |
void | chooseNextColorPalette (CRGBPalette16 &pal) |
Variables | |
CRGBArray< NUM_LEDS > | leds |
CRGB | gBackgroundColor = CRGB::Black |
CRGBPalette16 | gCurrentPalette |
CRGBPalette16 | gTargetPalette |
const TProgmemRGBPalette16 | RedGreenWhite_p |
const TProgmemRGBPalette16 | Holly_p |
const TProgmemRGBPalette16 | RedWhite_p |
const TProgmemRGBPalette16 | BlueWhite_p |
const TProgmemRGBPalette16 | FairyLight_p |
const TProgmemRGBPalette16 | Snow_p |
const TProgmemRGBPalette16 | RetroC9_p |
const TProgmemRGBPalette16 | Ice_p |
const TProgmemRGBPalette16 * | ActivePaletteList [] |
#define AUTO_SELECT_BACKGROUND_COLOR 0 |
Definition at line 105 of file TwinkleFox.ino.
#define C9_Blue 0x070758 |
Definition at line 336 of file TwinkleFox.ino.
#define C9_Green 0x046002 |
Definition at line 335 of file TwinkleFox.ino.
#define C9_Orange 0x902C02 |
Definition at line 334 of file TwinkleFox.ino.
#define C9_Red 0xB80400 |
Definition at line 333 of file TwinkleFox.ino.
#define C9_White 0x606820 |
Definition at line 337 of file TwinkleFox.ino.
#define COLOR_ORDER GRB |
Definition at line 10 of file TwinkleFox.ino.
#define COOL_LIKE_INCANDESCENT 1 |
Definition at line 110 of file TwinkleFox.ino.
#define DATA_PIN 3 |
Definition at line 11 of file TwinkleFox.ino.
#define HALFFAIRY ((CRGB::FairyLight & 0xFEFEFE) / 2) |
Definition at line 316 of file TwinkleFox.ino.
#define Holly_Green 0x00580c |
Definition at line 290 of file TwinkleFox.ino.
#define Holly_Red 0xB00402 |
Definition at line 291 of file TwinkleFox.ino.
#define Ice_Blue1 0x0C1040 |
Definition at line 347 of file TwinkleFox.ino.
#define Ice_Blue2 0x182080 |
Definition at line 348 of file TwinkleFox.ino.
#define Ice_Blue3 0x5080C0 |
Definition at line 349 of file TwinkleFox.ino.
#define LED_TYPE WS2811 |
Definition at line 9 of file TwinkleFox.ino.
#define MAX_MA 4000 |
Definition at line 14 of file TwinkleFox.ino.
#define NUM_LEDS 100 |
Definition at line 8 of file TwinkleFox.ino.
#define QUARTERFAIRY ((CRGB::FairyLight & 0xFCFCFC) / 4) |
Definition at line 317 of file TwinkleFox.ino.
#define SECONDS_PER_PALETTE 30 |
Definition at line 89 of file TwinkleFox.ino.
#define TWINKLE_DENSITY 5 |
Definition at line 86 of file TwinkleFox.ino.
#define TWINKLE_SPEED 4 |
Definition at line 81 of file TwinkleFox.ino.
#define VOLTS 12 |
Definition at line 13 of file TwinkleFox.ino.
uint8_t attackDecayWave8 | ( | uint8_t | i | ) |
Definition at line 259 of file TwinkleFox.ino.
void chooseNextColorPalette | ( | CRGBPalette16 & | pal | ) |
Definition at line 376 of file TwinkleFox.ino.
CRGB computeOneTwinkle | ( | uint32_t | ms, |
uint8_t | salt ) |
Definition at line 221 of file TwinkleFox.ino.
void coolLikeIncandescent | ( | CRGB & | c, |
uint8_t | phase ) |
Definition at line 272 of file TwinkleFox.ino.
void drawTwinkles | ( | CRGBSet & | L | ) |
Definition at line 147 of file TwinkleFox.ino.
void loop | ( | ) |
Definition at line 126 of file TwinkleFox.ino.
void setup | ( | ) |
Definition at line 116 of file TwinkleFox.ino.
const TProgmemRGBPalette16* ActivePaletteList[] |
Definition at line 361 of file TwinkleFox.ino.
const TProgmemRGBPalette16 BlueWhite_p |
Definition at line 309 of file TwinkleFox.ino.
const TProgmemRGBPalette16 FairyLight_p |
Definition at line 318 of file TwinkleFox.ino.
CRGB gBackgroundColor = CRGB::Black |
Definition at line 97 of file TwinkleFox.ino.
CRGBPalette16 gCurrentPalette |
Definition at line 113 of file TwinkleFox.ino.
CRGBPalette16 gTargetPalette |
Definition at line 114 of file TwinkleFox.ino.
const TProgmemRGBPalette16 Holly_p |
Definition at line 292 of file TwinkleFox.ino.
const TProgmemRGBPalette16 Ice_p |
Definition at line 350 of file TwinkleFox.ino.
CRGBArray<NUM_LEDS> leds |
Definition at line 76 of file TwinkleFox.ino.
const TProgmemRGBPalette16 RedGreenWhite_p |
Definition at line 283 of file TwinkleFox.ino.
const TProgmemRGBPalette16 RedWhite_p |
Definition at line 301 of file TwinkleFox.ino.
const TProgmemRGBPalette16 RetroC9_p |
Definition at line 338 of file TwinkleFox.ino.
const TProgmemRGBPalette16 Snow_p |
Definition at line 325 of file TwinkleFox.ino.