FastLED 3.9.15
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 188 of file channel.cpp.hpp.

188 {
189 if (const ClocklessChipset* cs = mChipset.ptr<ClocklessChipset>()) {
190 return cs->pin;
191 }
192 if (const SpiChipsetConfig* spi = mChipset.ptr<SpiChipsetConfig>()) {
193 return spi->dataPin;
194 }
195 return -1;
196}
ChipsetVariant mChipset
Definition channel.h:254

References mChipset.