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

◆ setup()

void setup ( )

Definition at line 91 of file complex.h.

91 {
92 Serial.begin(115200);
93 auto screenmap = xyMap.toScreenMap();
94 screenmap.setDiameter(.2);
95 FastLED.addLeds<NEOPIXEL, 2>(leds, NUM_LEDS).setScreenMap(screenmap);
97 // Initialize wave simulation. Please don't use static constructors, keep it
98 // in setup().
99 trigger.click();
101}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
XYMap xyMap(WIDTH, HEIGHT, false)
WaveEffect wave_fx
UIButton trigger("Trigger")
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
LED controller for WS2812 LEDs with GRB color order.
Definition FastLED.h:155
void setupUiCallbacks()
Definition complex.h:73
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: