Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

34 lines
1.5KB

  1. <h3>Summary</h3>
  2. <p>Transmit 16 bit stereo audio to an I2S device using I2S slave mode.</p>
  3. <h3>Audio Connections</h3>
  4. <table class=doc align=center cellpadding=3>
  5. <tr class=top><th>Port</th><th>Purpose</th></tr>
  6. <tr class=odd><td align=center>In 0</td><td>Left Channel</td></tr>
  7. <tr class=odd><td align=center>In 1</td><td>Right Channel</td></tr>
  8. </table>
  9. <h3>Functions</h3>
  10. <p>This object has no functions to call from the Arduino sketch. It
  11. simply streams data from its 2 input ports to the I2S hardware.</p>
  12. <h3>Hardware</h3>
  13. <p>The I2S signals are used in "slave" mode, where the I2S device controls
  14. data timing.</p>
  15. <table class=doc align=center cellpadding=3>
  16. <tr class=top><th>Pin</th><th>Signal</th><th>Direction</th></tr>
  17. <tr class=odd><td align=center>9</td><td>BCLK</td><td>Input</td></tr>
  18. <tr class=odd><td align=center>22</td><td>TX</td><td>Output</td></tr>
  19. <tr class=odd><td align=center>23</td><td>LRCLK</td><td>Input</td></tr>
  20. </table>
  21. <h3>Examples</h3>
  22. <p class=exam>File &gt; Examples &gt; Audio &gt; HardwareTesting &gt; WM8731MikroSine
  23. </p>
  24. <h3>Notes</h3>
  25. <p>Slave mode I2S <b>should not used in the same project as ADC, DAC and
  26. PWM</b> signals. Differences in timing between the I2S device and
  27. Teensy's clock can cause occasional audio glitches when I2S slave mode
  28. is used together with other input or output objects based on Teensy's
  29. timing.</p>
  30. <p>Only one I2S input and one I2S output object may be used. Master
  31. and slave modes may not be mixed (both must be of the same type).
  32. </p>