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

◆ setup()

void setup ( )

Definition at line 108 of file wasm_impl.h.

108 {
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}
#define COLOR_ORDER
fl::XYMap xyMap
fl::FxEngine fxEngine(NUM_LEDS)
#define NUM_LEDS
fl::Animartrix animartrix(xyMap, FIRST_ANIMATION)
fl::CRGB leds[NUM_LEDS]
fl::UISlider brightness("Brightness", BRIGHTNESS, 0, 255)
#define LED_PIN
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
fl::UISlider scale("Scale", 4,.1, 4,.1)
fl::CRGBPalette16 noisePalette
Definition curr.h:243
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:15
#define Serial
Definition serial.h:304

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