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

◆ loop()

void loop ( )

Definition at line 104 of file FxNoiseRing.ino.

104 {
105 // Allow the dither to be enabled and disabled.
107 uint32_t now = fl::millis();
108 uint8_t bri = pir.transition(now);
109 FastLED.setBrightness(bri * brightness.as<float>());
110 // Apply leds generation to the leds.
111 draw(now);
112
113 FastLED.show();
114}
fl::UISlider brightness("Brightness", BRIGHTNESS, 0, 255)
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
fl::UICheckbox useDither("Use Binary Dither", true)
CLEDController * controller
void draw(uint32_t now)
fl::Pir pir(PIN_PIR, PIR_LATCH_MS, PIR_RISING_TIME, PIR_FALLING_TIME)
#define BINARY_DITHER
Enable dithering using binary dithering (only option)
Definition dither_mode.h:12
#define DISABLE_DITHER
Disable dithering.
Definition dither_mode.h:10
fl::u32 uint32_t
Definition s16x16x4.h:219
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
unsigned char uint8_t
Definition s16x16x4.h:209

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

+ Here is the call graph for this function: