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

◆ getPinSD()

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

Definition at line 120 of file input.h.

120 {
121#if defined(FL_IS_TEENSY_3X) || defined(FL_IS_TEENSY_35) || \
122 defined(FL_IS_TEENSY_36)
123 // Teensy 3.x
124 return (port == I2SPort::I2S1) ? 13 : -1;
125#elif defined(FL_IS_TEENSY_4X)
126 // Teensy 4.x
127 return (port == I2SPort::I2S1) ? 8 : 5;
128#else
129 // Unknown platform - evaluate parameter to avoid unused warning
130 return (port == I2SPort::I2S1 || port == I2SPort::I2S2) ? -1 : -1;
131#endif
132}

References FL_NOEXCEPT, I2S1, and I2S2.

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

+ Here is the caller graph for this function: