FastLED 3.9.15
Loading...
Searching...
No Matches
FxTwinkleFox.ino
Go to the documentation of this file.
1// @filter: (mem is large)
2#include "FastLED.h"
4
5#define NUM_LEDS 100
6#define LED_TYPE WS2811
7#define COLOR_ORDER GRB
8#define DATA_PIN 3
9#define VOLTS 12
10#define MAX_MA 4000
11
14
15void setup() {
16 delay(3000); // safety startup delay
17 FastLED.setMaxPowerInVoltsAndMilliamps(VOLTS, MAX_MA);
19 .setCorrection(TypicalLEDStrip)
20 .setRgbw();
21}
22
23void loop() {
25 twinkleFox.chooseNextColorPalette(twinkleFox.targetPalette);
26 }
27 twinkleFox.draw(fl::Fx::DrawContext(millis(), leds));
28 FastLED.show();
29}
#define COLOR_ORDER
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
#define DATA_PIN
Definition ClientReal.h:82
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
fl::TwinkleFox twinkleFox(NUM_LEDS)
void setup()
#define MAX_MA
void loop()
#define LED_TYPE
A version of CPixelView<CRGB> with an included array of CRGB LEDs.
Definition pixelset.h:496
::fl::DrawContext DrawContext
Definition fx.h:21
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:15
#define EVERY_N_SECONDS(N)
Checks whether to execute a block of code every N seconds.
Definition lib8tion.h:1010
#define VOLTS
Definition old.h:22
#define SECONDS_PER_PALETTE
Definition twinklefox.h:93