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

◆ ButtonStrategy

enum class fl::ButtonStrategy
strong
Enumerator
kHighLowFloating 
kPullUp 
kPullDown 

Definition at line 14 of file button.h.

14 {
15 // High-low floating detection strategy: Sets pin to high, checks if high,
16 // sets pin to low, checks if low. If both are true, pin is floating and
17 // button is not pressed. Useful for detecting buttons without pull resistors.
19
20 // Active-low button strategy: Uses internal pull-up resistor.
21 // Button connects pin to ground when pressed. Reading LOW = pressed.
22 kPullUp,
23
24 // Active-high button strategy: Uses internal pull-down resistor.
25 // Button connects pin to VCC when pressed. Reading HIGH = pressed.
27};