MCPcopy Create free account
hub / github.com/FastLED/FastLED / getDataPin

Method getDataPin

src/fl/channels/config.cpp.hpp:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62// ========== Accessor Methods ==========
63
64int ChannelConfig::getDataPin() const {
65 if (const ClocklessChipset* clockless = chipset.ptr<ClocklessChipset>()) {
66 return clockless->pin;
67 } else if (const SpiChipsetConfig* spi = chipset.ptr<SpiChipsetConfig>()) {
68 return spi->dataPin;
69 }
70 return -1; // Invalid/empty variant
71}
72
73int ChannelConfig::getClockPin() const {
74 if (const SpiChipsetConfig* spi = chipset.ptr<SpiChipsetConfig>()) {

Callers 6

FL_TEST_FILEFunction · 0.80
FL_TEST_FILEFunction · 0.80
runTestFunction · 0.80
measureTightTimingFunction · 0.80

Calls

no outgoing calls

Tested by 3

runTestFunction · 0.64