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

◆ getPinCLK()

int fl::audio::TeensyI2S::getPinCLK ( I2SPort port)
constexpr

Definition at line 135 of file input.h.

135 {
136#if defined(FL_IS_TEENSY_3X) || defined(FL_IS_TEENSY_35) || \
137 defined(FL_IS_TEENSY_36)
138 // Teensy 3.x
139 return (port == I2SPort::I2S1) ? 9 : -1;
140#elif defined(FL_IS_TEENSY_4X)
141 // Teensy 4.x
142 return (port == I2SPort::I2S1) ? 21 : 4;
143#else
144 // Unknown platform - evaluate parameter to avoid unused warning
145 return (port == I2SPort::I2S1 || port == I2SPort::I2S2) ? -1 : -1;
146#endif
147}

References FL_NOEXCEPT, I2S1, and I2S2.

Referenced by fl::audio::Config::CreateTeensyI2S().

+ Here is the caller graph for this function: