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

◆ setupUiCallbacks()

void setupUiCallbacks ( )

Definition at line 78 of file complex.h.

78 {
79 speed.onChanged([](float value) { time_warp.setSpeed(speed.value()); });
80 maxAnimation.onChanged(
81 [](float value) { shapeProgress.set_max_clamp(maxAnimation.value()); });
82
83 trigger.onChanged([]() {
84 // shapeProgress.trigger(millis());
85 FASTLED_WARN("Trigger pressed");
86 });
87 useWaveFx.onChanged([](bool on) {
88 if (on) {
89 FASTLED_WARN("WaveFX enabled");
90 } else {
91 FASTLED_WARN("WaveFX disabled");
92 }
93 });
94}
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)
uint16_t speed
Definition funky.cpp:82
#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: