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

◆ setup()

void setup ( )

Definition at line 97 of file complex.h.

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

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

+ Here is the call graph for this function: