FastLED 3.10.8
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 309 of file channel.cpp.hpp.

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

References fl::FL_NO_EXCEPT, and mChipset.