|
FastLED 3.9.15
|
#include <button.h>
Collaboration diagram for fl::Button:Classes | |
| struct | Listener |
Public Member Functions | |
| Button (int pin, ButtonStrategy strategy=ButtonStrategy::kHighLowFloating) | |
| bool | clicked () const |
| bool | isPressed () |
| int | onClick (fl::function< void()> callback) |
| void | removeOnClick (int id) |
| void | setStrategy (ButtonStrategy strategy) |
Private Attributes | |
| ButtonLowLevel | mButton |
| bool | mClickedThisFrame = false |
| Listener | mListener |
| fl::FunctionList< void > | mOnClickCallbacks |
| bool | mPressedLastFrame = false |