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

559 {
560 if (const SpiChipsetConfig* spi = mChipset.ptr<SpiChipsetConfig>()) {
561 return spi->clockPin;
562 }
563 return -1; // Clockless chipsets don't have a clock pin
564}
ChipsetVariant mChipset
Definition channel.h:413

References fl::FL_NO_EXCEPT, and mChipset.