Receive 16 bit stereo audio from the audio shield or another I2S device, using I2S master mode.
Port | Purpose |
---|---|
Out 0 | Left Channel |
Out 1 | Right Channel |
This object has no functions to call from the Arduino sketch. It simply streams data from the I2S hardware to its 2 output ports.
The I2S signals are used in "master" mode, where Teensy creates all 3 clock signals and controls all data timing.
Pin | Signal | Direction |
---|---|---|
9 | BCLK | Output |
11 | MCLK | Output |
13 | RX | Input |
23 | LRCLK | Output |
Audio from master mode I2S may be used in the same project as ADC, DAC and PWM signals, because all remain in sync to Teensy's timing
File > Examples > Audio > HardwareTesting > PassThroughStereo
File > Examples > Audio > Recorder
File > Examples > Audio > Analysis > PeakMeterStereo
File > Examples > Audio > Analysis > FFT
File > Examples > Audio > Analysis > SpectrumAnalyzerBasic
File > Examples > Audio > Effects > Chorus
File > Examples > Audio > Effects > Flange
File > Examples > Audio > Effects > Filter
File > Examples > Audio > Effects > Filter_FIR
Normally, this object is used with the Audio Shield, which is controlled separately by the "sgtl5000" object.
Only one I2S input and one I2S output object may be used. Master and slave modes may not be mixed (both must be of the same type).
I2S master objects can be used together with non-I2S input and output objects, for simultaneous audio streaming on different hardware.