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

◆ accepts()

bool fl::PinSet::accepts ( fl::i16 pin) const

True iff this set accepts the given single pin.

Definition in capabilities.cpp.hpp.

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

24 {
25 if (kind == PinSetKind::None) {
26 return false;
27 }
28 if (pin < 0 || static_cast<fl::u32>(pin) >= kPinSetCapacity) {
29 return false;
30 }
32 return true;
33 }
34 return pins.test(static_cast<fl::u32>(pin));
35}
static constexpr fl::u32 kPinSetCapacity
Maximum pin number representable in a PinSet's bitset.
PinSetKind kind
PinBitset pins
only meaningful when kind == Allowlist

References fl::AnyOutputPin, fl::FL_NO_EXCEPT, kind, fl::kPinSetCapacity, fl::None, and pins.