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.
18
kHighLowFloating
,
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.
26
kPullDown
,
27
};
fl::ButtonStrategy::kPullDown
@ kPullDown
Definition
button.h:26
fl::ButtonStrategy::kHighLowFloating
@ kHighLowFloating
Definition
button.h:18
fl::ButtonStrategy::kPullUp
@ kPullUp
Definition
button.h:22
fl
Generated on Tue Jun 16 2026 00:07:03 for FastLED by
1.13.2