FastLED 3.9.15
Loading...
Searching...
No Matches

◆ getPin()

int fl::ChannelData::getPin ( ) const

Get the GPIO pin number.

Definition at line 27 of file data.cpp.hpp.

27 {
28 if (const ClocklessChipset* cs = mChipset.ptr<ClocklessChipset>()) {
29 return cs->pin;
30 }
31 if (const SpiChipsetConfig* spi = mChipset.ptr<SpiChipsetConfig>()) {
32 return spi->dataPin;
33 }
34 return -1;
35}
ChipsetVariant mChipset
Chipset configuration (clockless or SPI)
Definition data.h:146

References FL_NOEXCEPT, and mChipset.