28 const bool was_high =
mPin.high();
32 const bool was_low = !
mPin.high();
51 FASTLED_ASSERT(
false,
"Unknown ButtonLowLevel strategy");
60 const bool pressed_curr_frame =
mOwner->mButton.isPressed();
61 const bool pressed_last_frame =
mOwner->mPressedLastFrame;
66 const bool clicked_this_frame = pressed_curr_frame && !pressed_last_frame;
67 mOwner->mPressedLastFrame = pressed_curr_frame;
68 mOwner->mClickedThisFrame = clicked_this_frame;
69 if (clicked_this_frame) {
70 mOwner->mOnClickCallbacks.invoke();
112 FASTLED_ASSERT(
false,
"Unknown ButtonLowLevel strategy");
static void removeListener(Listener *listener) FL_NOEXCEPT
static void addListener(Listener *listener, int priority=0) FL_NOEXCEPT
Base definition for an LED controller.
Aggregator header for the fl/ui/ family of per-element UI types.