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

◆ setup()

void setup ( )

Definition at line 611 of file FxNoiseRing.h.

611 {
612 Serial.begin(115200);
613 // ScreenMap is purely something that is needed for the sketch to correctly
614 // show on the web display. For deployements to real devices, this essentially
615 // becomes a no-op.
618 .setCorrection(TypicalLEDStrip)
619 .setDither(DISABLE_DITHER)
620 .setScreenMap(xyMap);
621 FastLED.setBrightness(brightness);
622 pir.activate(millis()); // Activate the PIR sensor on startup.
623
624 // Initialize performance optimizations
625 ring_lut.initialize();
626}
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
CLEDController * controller
Pir pir(PIN_PIR, PIR_LATCH_MS, PIR_RISING_TIME, PIR_FALLING_TIME)
RingLUT ring_lut
#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
static ScreenMap Circle(int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.5f, float completion=1.0f)
Definition screenmap.cpp:52
#define DISABLE_DITHER
Disable dithering.
Definition dither_mode.h:12
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:19

References brightness(), fl::ScreenMap::Circle(), COLOR_ORDER, controller, DISABLE_DITHER, FastLED, LED_PIN, leds, NUM_LEDS, pir(), ring_lut, TypicalLEDStrip, and xyMap.

+ Here is the call graph for this function: