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

◆ getClockPin()

int fl::Channel::getClockPin ( ) const

Get the clock pin for this channel (SPI only, -1 for clockless)

Returns
Clock pin number or -1

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

304 {
305 if (const SpiChipsetConfig* spi = mChipset.ptr<SpiChipsetConfig>()) {
306 return spi->clockPin;
307 }
308 return -1; // Clockless chipsets don't have a clock pin
309}
ChipsetVariant mChipset
Definition channel.h:254

References mChipset.