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 FASTLED_WARN("Trigger pressed");
87 });
88 useWaveFx.onChanged([](bool on) {
89 if (on) {
90 FASTLED_WARN("WaveFX enabled");
91 } else {
92 FASTLED_WARN("WaveFX disabled");
93 }
94 });
95}
uint16_t speed
Definition Noise.ino:63
UIButton trigger("Trigger")
UISlider maxAnimation("Max Animation", 1.0f, 5.0f, 20.0f, 1.f)
TimeWarp time_warp
Definition Downscale.h:54
TimeClampedTransition shapeProgress(TIME_ANIMATION)
UICheckbox useWaveFx("Use WaveFX", true)
#define FASTLED_WARN
Definition warn.h:7

References FASTLED_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: