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

Function setup

examples/wasm/wasm_impl.h:108–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106fl::FxEngine fxEngine(NUM_LEDS);
107
108void setup() {
109 Serial.begin(115200);
110 Serial.println("Sketch setup");
111 FastLED.addLeds<WS2811, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS)
112 .setCorrection(TypicalLEDStrip)
113 .setScreenMap(xyMap); // This is needed for the web display to work correctly.
114 Serial.println("FastLED setup done");
115 FastLED.setBrightness(brightness);
116 //noisePalette.setSpeed(speed);
117 noisePalette.setScale(scale);
118 fxEngine.addFx(animartrix); // Adding both effects allows us to switch between them.
119 fxEngine.addFx(noisePalette);
120 Serial.println("Sketch setup done");
121}
122
123void loop() {
124 uint32_t now = fl::millis();

Callers

nothing calls this directly

Calls 7

beginMethod · 0.45
printlnMethod · 0.45
setScreenMapMethod · 0.45
setCorrectionMethod · 0.45
setBrightnessMethod · 0.45
setScaleMethod · 0.45
addFxMethod · 0.45

Tested by

no test coverage detected