Summary

Transmit 16 bit stereo audio to the audio shield or another I2S device, using I2S master mode.

Audio Connections

PortPurpose
In 0Left Channel
In 1Right Channel

Functions

This object has no functions to call from the Arduino sketch. It simply streams data from its 2 input ports to the I2S hardware.

Hardware

The I2S signals are used in "master" mode, where Teensy creates all 3 clock signals and controls all data timing.

PinSignalDirection
9BCLKOutput
11MCLKOutput
22TXOutput
23LRCLKOutput

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

Examples

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

Notes

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).