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

◆ setupUiCallbacks()

void setupUiCallbacks ( )

Definition at line 79 of file complex.h.

79 {
80 speed.onChanged([](float value) { time_warp.setSpeed(speed.value()); });
81 maxAnimation.onChanged(
82 [](float value) { shapeProgress.set_max_clamp(maxAnimation.value()); });
83
84 trigger.onChanged([]() {
85 // shapeProgress.trigger(millis());
86 FL_WARN("Trigger pressed");
87 });
88 useWaveFx.onChanged([](bool on) {
89 if (on) {
90 FL_WARN("WaveFX enabled");
91 } else {
92 FL_WARN("WaveFX disabled");
93 }
94 });
95}
uint16_t speed
Definition Noise.ino:66
fl::UICheckbox useWaveFx("Use WaveFX", true)
fl::TimeWarp time_warp
Definition Downscale.h:52
fl::UIButton trigger("Trigger")
fl::TimeClampedTransition shapeProgress(TIME_ANIMATION)
fl::UISlider maxAnimation("Max Animation", 1.0f, 5.0f, 20.0f, 1.f)
#define FL_WARN(X)
Definition log.h:276

References FL_WARN, maxAnimation(), shapeProgress(), speed, time_warp, trigger(), and useWaveFx().

Referenced by setup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: