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

◆ setupUiCallbacks()

void setupUiCallbacks ( )

Definition at line 80 of file Downscale.h.

80 {
81 speed.onChanged([](float value) { time_warp.setSpeed(speed.value()); });
82 maxAnimation.onChanged(
83 [](float value) { shapeProgress.set_max_clamp(maxAnimation.value()); });
84
85 trigger.onClicked([]() {
86 // shapeProgress.trigger(millis());
87 FASTLED_WARN("Trigger pressed");
88 });
89 useWaveFx.onChanged([](fl::UICheckbox &checkbox) {
90 if (checkbox.value()) {
91 FASTLED_WARN("WaveFX enabled");
92 } else {
93 FASTLED_WARN("WaveFX disabled");
94 }
95 });
96}
bool value() const
Definition ui_impl.h:132
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(), useWaveFx(), and fl::UICheckboxImpl::value().

Referenced by setup().

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