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

◆ setupUiCallbacks()

void setupUiCallbacks ( )

Definition at line 73 of file complex.h.

73 {
74 speed.onChanged([](float value) { time_warp.setSpeed(speed.value()); });
75 maxAnimation.onChanged(
76 [](float value) { shapeProgress.set_max_clamp(maxAnimation.value()); });
77
78 trigger.onChanged([]() {
79 // shapeProgress.trigger(millis());
80 FASTLED_WARN("Trigger pressed");
81 });
82 useWaveFx.onChanged([](bool on) {
83 if (on) {
84 FASTLED_WARN("WaveFX enabled");
85 } else {
86 FASTLED_WARN("WaveFX disabled");
87 }
88 });
89}
UISlider speed("Speed", 1.0f, -20.0f, 20.0f, 0.01f)
TimeClampedTransition shapeProgress(TIME_ANIMATION)
UICheckbox useWaveFx("Use WaveFX", true)
TimeWarp time_warp
UISlider maxAnimation("Max Animation", 1.0f, 5.0f, 20.0f, 1.f)
UIButton trigger("Trigger")
#define FASTLED_WARN
Definition warn.h:7

References FASTLED_WARN, maxAnimation, shapeProgress, speed, time_warp, trigger, and useWaveFx.

Referenced by setup().

+ Here is the caller graph for this function: