FastLED 3.10.10
Loading...
Searching...
No Matches

◆ getPin()

int fl::Channel::getPin ( ) const

Get the pin number for this channel (data pin)

Returns
Pin number

Definition at line 311 of file channel.cpp.hpp.

311 {
312 if (const ClocklessChipset* cs = mChipset.ptr<ClocklessChipset>()) {
313 return cs->pin;
314 }
315 if (const SpiChipsetConfig* spi = mChipset.ptr<SpiChipsetConfig>()) {
316 return spi->dataPin;
317 }
318 return -1;
319}
ChipsetVariant mChipset
Definition channel.h:415

References fl::FL_NO_EXCEPT, and mChipset.