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

◆ setup()

void setup ( )

Definition at line 109 of file wasm_impl.h.

109 {
110 Serial.begin(115200);
111 Serial.println("Sketch setup");
113 .setCorrection(TypicalLEDStrip)
114 .setScreenMap(xyMap); // This is needed for the web display to work correctly.
115 Serial.println("FastLED setup done");
116 FastLED.setBrightness(brightness);
117 //noisePalette.setSpeed(speed);
118 noisePalette.setScale(scale);
119 fxEngine.addFx(animartrix); // Adding both effects allows us to switch between them.
120 fxEngine.addFx(noisePalette);
121 Serial.println("Sketch setup done");
122}
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
uint16_t scale
Definition Noise.ino:74
#define COLOR_ORDER
Definition advanced.h:42
UISlider brightness("Brightness", 128, 0, 255, 1)
#define LED_PIN
Definition advanced.h:40
WS2811 controller class.
Definition FastLED.h:266
fl::unique_ptr< Animartrix > animartrix
Definition curr.h:298
fl::unique_ptr< FxEngine > fxEngine
Definition curr.h:299
CRGBPalette16 noisePalette
Definition curr.h:255
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:19

References animartrix, brightness(), COLOR_ORDER, FastLED, fxEngine, LED_PIN, leds, noisePalette, NUM_LEDS, scale, TypicalLEDStrip, and xyMap.

+ Here is the call graph for this function: