FastLED 3.10.8
Loading...
Searching...
No Matches

◆ getPin()

int fl::ChannelData::getPin ( ) const

Get the GPIO pin number.

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

31 {
32 if (const ClocklessChipset* cs = mChipset.ptr<ClocklessChipset>()) {
33 return cs->pin;
34 }
35 if (const SpiChipsetConfig* spi = mChipset.ptr<SpiChipsetConfig>()) {
36 return spi->dataPin;
37 }
38 return -1;
39}
ChipsetVariant mChipset
Chipset configuration (clockless or SPI)
Definition data.h:189

References fl::FL_NO_EXCEPT, and mChipset.