MCPcopy Create free account
hub / github.com/FastLED/FastLED / setup

Function setup

examples/XYPath/complex.h:97–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void setup() {
98 Serial.begin(115200);
99 auto screenmap = xyMap.toScreenMap();
100 screenmap.setDiameter(.2);
101 FastLED.addLeds<NEOPIXEL, 2>(leds, NUM_LEDS).setScreenMap(screenmap);
102 setupUiCallbacks();
103 // Initialize wave simulation. Please don't use static constructors, keep it
104 // in setup().
105 trigger.click();
106 wave_fx = NewWaveSimulation2D(xyMap);
107}
108
109//////////////////// LOOP SECTION /////////////////////////////
110

Callers

nothing calls this directly

Calls 7

setDiameterMethod · 0.80
setupUiCallbacksFunction · 0.70
NewWaveSimulation2DFunction · 0.50
beginMethod · 0.45
toScreenMapMethod · 0.45
setScreenMapMethod · 0.45
clickMethod · 0.45

Tested by

no test coverage detected