FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setup()

void setup ( )

Definition at line 103 of file FxWave2d.ino.

103 {
104 Serial.begin(115200);
105 auto screenmap = xyMap.toScreenMap();
106 screenmap.setDiameter(.2);
107 FastLED.addLeds<NEOPIXEL, 2>(leds, NUM_LEDS).setScreenMap(screenmap);
108 fxBlend.add(waveFxLower);
109 fxBlend.add(waveFxUpper);
110}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
XYMap xyMap(WIDTH, HEIGHT, false)
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
Blend2d fxBlend(xyMap)
WaveFx waveFxLower(xyRect, CreateArgsLower())
WaveFx waveFxUpper(xyRect, CreateArgsUpper())
LED controller for WS2812 LEDs with GRB color order.
Definition FastLED.h:155

References FastLED, fxBlend, leds, NUM_LEDS, waveFxLower, waveFxUpper, and xyMap.