FastLED 3.9.15
Loading...
Searching...
No Matches
TwinkleFox.ino File Reference

Detailed Description

Twinkling "holiday" lights that fade in and out.

Definition in file TwinkleFox.ino.

#include "FastLED.h"
+ Include dependency graph for TwinkleFox.ino:

Go to the source code of this file.

Macros

#define AUTO_SELECT_BACKGROUND_COLOR   0
 
#define C9_Blue   0x070758
 
#define C9_Green   0x046002
 
#define C9_Orange   0x902C02
 
#define C9_Red   0xB80400
 
#define C9_White   0x606820
 
#define COLOR_ORDER   GRB
 
#define COOL_LIKE_INCANDESCENT   1
 
#define DATA_PIN   3
 
#define HALFFAIRY   ((CRGB::FairyLight & 0xFEFEFE) / 2)
 
#define Holly_Green   0x00580c
 
#define Holly_Red   0xB00402
 
#define Ice_Blue1   0x0C1040
 
#define Ice_Blue2   0x182080
 
#define Ice_Blue3   0x5080C0
 
#define LED_TYPE   WS2811
 
#define MAX_MA   4000
 
#define NUM_LEDS   100
 
#define QUARTERFAIRY   ((CRGB::FairyLight & 0xFCFCFC) / 4)
 
#define SECONDS_PER_PALETTE   30
 
#define TWINKLE_DENSITY   5
 
#define TWINKLE_SPEED   4
 
#define VOLTS   12
 

Functions

uint8_t attackDecayWave8 (uint8_t i)
 
void chooseNextColorPalette (CRGBPalette16 &pal)
 
CRGB computeOneTwinkle (uint32_t ms, uint8_t salt)
 
void coolLikeIncandescent (CRGB &c, uint8_t phase)
 
void drawTwinkles (CRGBSet &L)
 
void loop ()
 
void setup ()
 

Variables

const TProgmemRGBPalette16ActivePaletteList []
 
const TProgmemRGBPalette16 BlueWhite_p
 
const TProgmemRGBPalette16 FairyLight_p
 
CRGB gBackgroundColor = CRGB::Black
 
CRGBPalette16 gCurrentPalette
 
CRGBPalette16 gTargetPalette
 
const TProgmemRGBPalette16 Holly_p
 
const TProgmemRGBPalette16 Ice_p
 
CRGBArray< NUM_LEDSleds
 
const TProgmemRGBPalette16 RedGreenWhite_p
 
const TProgmemRGBPalette16 RedWhite_p
 
const TProgmemRGBPalette16 RetroC9_p
 
const TProgmemRGBPalette16 Snow_p