FastLED 3.10.6
Loading...
Searching...
No Matches

◆ loop()

void loop ( )

Definition at line 94 of file FxLedmapper32x32.ino.

94 {
95 if (gError) {
97 FL_WARN("FxLedmapper32x32 halted due to setup error.");
98 }
99 return;
100 }
101
102 FastLED.setBrightness(static_cast<uint8_t>(brightness.value()));
103 video.setTimeScale(playbackSpeed.value());
104 video.draw(fl::millis(), leds);
105 FastLED.show();
106}
CRGB leds[1]
fl::UISlider brightness("Brightness", BRIGHTNESS, 0, 255)
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
fl::Video video(NUM_LEDS, 2.0f)
fl::UISlider playbackSpeed("Playback Speed", 1.0f, -2.0f, 2.0f, 0.01f)
bool gError
#define EVERY_N_SECONDS(N)
Checks whether to execute a block of code every N seconds.
Definition lib8tion.h:1009
#define FL_WARN(...)
Definition log.h:440
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
unsigned char uint8_t
Definition stdint.h:208

References brightness, EVERY_N_SECONDS, FastLED, FL_WARN, gError, leds, fl::millis(), playbackSpeed, and video.

+ Here is the call graph for this function: