MCPcopy Create free account
hub / github.com/FastLED/FastLED / isFastLedOutputPinValid

Function isFastLedOutputPinValid

examples/AutoResearch/AutoResearchParlioStream.h:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46constexpr int kMaxLanes = 16;
47
48inline bool isFastLedOutputPinValid(int pin) {
49 if (pin < 0 || pin >= 64) {
50 return false;
51 }
52#if defined(_FL_VALID_PIN_MASK)
53 return (_FL_VALID_PIN_MASK & (1ULL << pin)) != 0;
54#else
55 return true;
56#endif
57}
58
59struct ValidateResult {
60 bool channels_ok; // true if all PARLIO channels created cleanly

Callers 1

validateParlioStreamingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected