Transmit 16 bit stereo audio to the audio shield or another I2S device, using I2S master mode.
Port | Purpose |
---|---|
In 0 | Left Channel |
In 1 | Right Channel |
This object has no functions to call from the Arduino sketch. It simply streams data from its 2 input ports to the I2S hardware.
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 |
22 | TX | Output |
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
Nearly all the examples use this object. Here are some of the highlights:
File > Examples > Audio > HardwareTesting > PassThroughStereo
File > Examples > Audio > SamplePlayer
File > Examples > Audio > Recorder
File > Examples > Audio > WavFilePlayer
File > Examples > Audio > Effects > Chorus
File > Examples > Audio > Synthesis > PlaySynthMusic
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).