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

◆ allowlist()

template<fl::size N>
static PinSet fl::PinSet::allowlist ( const fl::i16(&) arr[N])
inlinestatic

Factory: allowlist of pins, constructed from a static array.

Pin numbers >= kPinSetCapacity are ignored.

Definition at line 138 of file capabilities.h.

138 {
140 for (fl::size i = 0; i < N; ++i) {
141 if (arr[i] >= 0 && static_cast<fl::u32>(arr[i]) < kPinSetCapacity) {
142 ps.pins.set(static_cast<fl::u32>(arr[i]));
143 }
144 }
145 return ps;
146 }
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: