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

◆ loop()

void loop ( )

Definition at line 99 of file FxNoiseRing.ino.

99 {
100 // Allow the dither to be enabled and disabled.
102 uint32_t now = millis();
103 uint8_t bri = pir.transition(now);
104 FastLED.setBrightness(bri * brightness.as<float>());
105 // Apply leds generation to the leds.
106 draw(now);
107 FastLED.show();
108}
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:62
Pir pir(PIN_PIR, PIR_LATCH_MS, PIR_RISING_TIME, PIR_FALLING_TIME)
CLEDController * controller
void draw(uint32_t now)
UICheckbox useDither("Use Binary Dither", true)
UISlider brightness("Brightness", 1, 0, 1)
#define BINARY_DITHER
Enable dithering using binary dithering (only option)
Definition dither_mode.h:13
#define DISABLE_DITHER
Disable dithering.
Definition dither_mode.h:11

References BINARY_DITHER, brightness, controller, DISABLE_DITHER, draw(), FastLED, pir, and useDither.

+ Here is the call graph for this function: