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

◆ loop()

void loop ( )

Definition at line 671 of file FxNoiseRing.h.

671 {
672 // Allow the dither to be enabled and disabled.
674 uint32_t now = millis();
675 uint8_t bri = pir.transition(now);
676 FastLED.setBrightness(bri * brightness.as<float>());
677 // Apply leds generation to the leds.
678 draw(now);
679
680
681 FastLED.show();
682}
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:74
CLEDController * controller
void draw(uint32_t now)
Pir pir(PIN_PIR, PIR_LATCH_MS, PIR_RISING_TIME, PIR_FALLING_TIME)
UICheckbox useDither("Use Binary Dither", true)
UISlider brightness("Brightness", 128, 0, 255, 1)
#define BINARY_DITHER
Enable dithering using binary dithering (only option)
Definition dither_mode.h:14
#define DISABLE_DITHER
Disable dithering.
Definition dither_mode.h:12

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

+ Here is the call graph for this function: