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

◆ getClockPin()

int fl::ChannelConfig::getClockPin ( ) const

Get clock pin (returns -1 for clockless chipsets)

Examples
/home/runner/work/FastLED/FastLED/src/fl/channels/config.h.

Definition at line 73 of file config.cpp.hpp.

73 {
74 if (const SpiChipsetConfig* spi = chipset.ptr<SpiChipsetConfig>()) {
75 return spi->clockPin;
76 }
77 return -1; // Clockless chipsets don't have a clock pin
78}
ChipsetVariant chipset
Chipset configuration (clockless or SPI)
Definition config.h:264

References chipset.