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

◆ setup()

void setup ( )

Definition at line 96 of file complex.h.

96 {
97 Serial.begin(115200);
98 auto screenmap = xyMap.toScreenMap();
99 screenmap.setDiameter(.2);
100 FastLED.addLeds<NEOPIXEL, 2>(leds, NUM_LEDS).setScreenMap(screenmap);
102 // Initialize wave simulation. Please don't use static constructors, keep it
103 // in setup().
104 trigger.click();
106}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:62
LED controller for WS2812 LEDs with GRB color order.
Definition FastLED.h:155
void setupUiCallbacks()
Definition complex.h:78
UIButton trigger("Trigger")
WaveEffect wave_fx
Definition Downscale.h:50
WaveEffect NewWaveSimulation2D(const XYMap xymap)
Definition wave.cpp:42
XYMap xyMap
Definition gfx.cpp:8

References FastLED, leds, NewWaveSimulation2D(), NUM_LEDS, setupUiCallbacks(), trigger(), wave_fx, and xyMap.

+ Here is the call graph for this function: