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}
fl::XYMap xyMap
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
fl::ScreenMap screenmap
WaveEffect NewWaveSimulation2D(const fl::XYMap &xymap)
Definition wave.cpp:42
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
void setupUiCallbacks()
Definition complex.h:79
fl::UIButton trigger("Trigger")
WaveEffect wave_fx
Definition Downscale.h:48
#define Serial
Definition serial.h:304

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

+ Here is the call graph for this function: