|
|
@@ -13,9 +13,38 @@ |
|
|
|
}); |
|
|
|
</script> |
|
|
|
<script type="text/x-red" data-help-name="AnalogInputI2S"> |
|
|
|
<p>Receive 16 bit stereo input from the |
|
|
|
audio shield or other I2S device</p> |
|
|
|
<p><b>TODO</b> Add object documetation here</b>.</p> |
|
|
|
<h3>Summary</h3> |
|
|
|
<p>Receive 16 bit stereo audio from the |
|
|
|
<a href="http://www.pjrc.com/store/teensy3_audio.html" target="_blank">audio shield</a> |
|
|
|
or another I2S device.</p> |
|
|
|
<h3>Audio Library Ports</h3> |
|
|
|
<table class=doc align=center cellpadding=3> |
|
|
|
<tr class=top><th>Port</th><th>Function</th></tr> |
|
|
|
<tr class=odd><td align=center>Out 0</td><td>Left Channel</td></tr> |
|
|
|
<tr class=odd><td align=center>Out 1</td><td>Right Channel</td></tr> |
|
|
|
</table> |
|
|
|
<h3>Functions</h3> |
|
|
|
<p>This object has no functions to call from the Arduino sketch. It |
|
|
|
simply streams data from the I2S hardware to its 2 output ports.</p> |
|
|
|
<h3>Hardware</h3> |
|
|
|
<p align=center><img src="audioshield_inputs.jpg"></p> |
|
|
|
<p>The I2S signals are used in "master" mode, where Teensy creates |
|
|
|
all 3 clock signals and controls all data timing.</p> |
|
|
|
|
|
|
|
<table class=doc align=center cellpadding=3> |
|
|
|
<tr class=top><th>Pin</th><th>Signal</th><th>Direction</th></tr> |
|
|
|
<tr class=odd><td align=center>9</td><td>BCLK</td><td>Output</td></tr> |
|
|
|
<tr class=odd><td align=center>11</td><td>MCLK</td><td>Output</td></tr> |
|
|
|
<tr class=odd><td align=center>13</td><td>RX</td><td>Input</td></tr> |
|
|
|
<tr class=odd><td align=center>23</td><td>LRCLK</td><td>Output</td></tr> |
|
|
|
</table> |
|
|
|
<p>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</p> |
|
|
|
<h3>Notes</h3> |
|
|
|
<p>Normally, this object is used with the Audio Shield, which |
|
|
|
is controlled separately by the "sgtl5000" object.</p> |
|
|
|
<p align=center><img src="audioshield_backside.jpg"></p> |
|
|
|
</script> |
|
|
|
<script type="text/x-red" data-template-name="AnalogInputI2S"> |
|
|
|
<div class="form-row"> |
|
|
@@ -36,6 +65,9 @@ |
|
|
|
}); |
|
|
|
</script> |
|
|
|
<script type="text/x-red" data-help-name="AnalogInputI2Sslave"> |
|
|
|
<p>Receive 16 bit stereo audio from a I2S device using slave mode</p> |
|
|
|
|
|
|
|
|
|
|
|
<p>Stereo audio input from the audio shield or other I2S device</p> |
|
|
|
<p><b>TODO</b> Add object documetation here</b>.</p> |
|
|
|
</script> |