FastLED 3.9.15
Loading...
Searching...
No Matches
fl::Button Class Reference

Detailed Description

Definition at line 50 of file button.h.

#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
 

The documentation for this class was generated from the following files: