FastLED 3.10.10
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 579 of file channel.cpp.hpp.

579 {
580 if (const SpiChipsetConfig* spi = mChipset.ptr<SpiChipsetConfig>()) {
581 return spi->clockPin;
582 }
583 return -1; // Clockless chipsets don't have a clock pin
584}
ChipsetVariant mChipset
Definition channel.h:415

References fl::FL_NO_EXCEPT, and mChipset.