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

◆ getPinWS()

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

Definition at line 105 of file input.h.

105 {
106#if defined(FL_IS_TEENSY_3X) || defined(FL_IS_TEENSY_35) || \
107 defined(FL_IS_TEENSY_36)
108 // Teensy 3.x - only I2S1 available
109 return (port == I2SPort::I2S1) ? 23 : -1;
110#elif defined(FL_IS_TEENSY_4X)
111 // Teensy 4.x - I2S1 and I2S2 available
112 return (port == I2SPort::I2S1) ? 20 : 3;
113#else
114 // Unknown platform - evaluate parameter to avoid unused warning
115 return (port == I2SPort::I2S1 || port == I2SPort::I2S2) ? -1 : -1;
116#endif
117}

References FL_NOEXCEPT, I2S1, and I2S2.

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

+ Here is the caller graph for this function: