FastLED 3.10.6
Loading...
Searching...
No Matches

◆ fixed()

PinSet fl::PinSet::fixed ( fl::i16 pin)
static

Factory: allowlist with a single pin (the "fixed pin" idiom).

Definition in capabilities.cpp.hpp.

Definition at line 16 of file capabilities.cpp.hpp.

16 {
18 if (pin >= 0 && static_cast<fl::u32>(pin) < kPinSetCapacity) {
19 ps.pins.set(static_cast<fl::u32>(pin));
20 }
21 return ps;
22}
P ps[MAXP]
Definition Luminova.h:57
static constexpr fl::u32 kPinSetCapacity
Maximum pin number representable in a PinSet's bitset.
constexpr PinSet() FL_NO_EXCEPT

References PinSet(), fl::Allowlist, fl::FL_NO_EXCEPT, fl::kPinSetCapacity, and ps.

+ Here is the call graph for this function: