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

◆ loop()

void loop ( )

Definition at line 99 of file FxNoiseRing.ino.

99 {
100 handleSerialDither(); // Add this line at start of loop()
101
103 EVERY_N_SECONDS(1) {
104 FASTLED_WARN("loop");
105 }
106 uint8_t bri = pir.transition(millis());
107 FastLED.setBrightness(bri * brightness.as<float>());
108 draw(millis());
109 FastLED.show();
110}
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
UISlider brightness("Brightness", 255, 0, 255, 1)
PirAdvanced pir(PIN_PIR, PIR_LATCH_MS, PIR_RISING_TIME, PIR_FALLING_TIME)
void handleSerialDither()
CLEDController * controller
void draw(uint32_t now)
UICheckbox useDither("Use Binary Dither", true)
#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
#define EVERY_N_SECONDS(N)
Checks whether to execute a block of code every N seconds.
Definition lib8tion.h:1324
#define FASTLED_WARN
Definition warn.h:7

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

+ Here is the call graph for this function: