Kaynağa Gözat

Update WM8731 documentation

dds
PaulStoffregen 6 yıl önce
ebeveyn
işleme
e4fcedd834
2 değiştirilmiş dosya ile 20 ekleme ve 10 silme
  1. +7
    -1
      examples/HardwareTesting/WM8731MikroSine/WM8731MikroSine.ino
  2. +13
    -9
      gui/index.html

+ 7
- 1
examples/HardwareTesting/WM8731MikroSine/WM8731MikroSine.ino Dosyayı Görüntüle

@@ -3,6 +3,12 @@
// Requires the MikroElektronika Audio Codec board or similar hardware
// http://www.mikroe.com/add-on-boards/audio-voice/audio-codec-proto/
//
// When using AudioInputI2Sslave & AudioOutputI2Sslave with MikroE-506,
// the sample rate will be the crystal frequency divided by 256. The
// MikroE-506 comes with a 12.288 MHz crystal, for 48 kHz sample rate.
// To get 44.1 kHz (as expected by the Teensy Audio Library) the crystal
// should be replaced with 11.2896 MHz.
//
// Recommended connections:
//
// Mikroe Teensy 3.1
@@ -50,7 +56,7 @@ void setup() {

wm8731m1.volume(0.50);
wm8731m1.inputSelect(AUDIO_INPUT_MIC);
// wm8731m1.inputSelect(AUDIO_INPUT_LINEIN); // not connected on MikroE-516
// wm8731m1.inputSelect(AUDIO_INPUT_LINEIN); // not connected on MikroE-506
}

elapsedMillis msec;

+ 13
- 9
gui/index.html Dosyayı Görüntüle

@@ -4129,19 +4129,19 @@ value frequency
</p>
<h3>Functions</h3>
<p class=func><span class=keyword>enable</span>();</p>
<p class=desc>blah blah blah blah
<p class=desc>Turn on the WS8731.
</p>
<p class=func><span class=keyword>disable</span>();</p>
<p class=desc>not implemented
</p>
<p class=func><span class=keyword>volume</span>(level);</p>
<p class=desc>blah blah blah blah
<p class=desc>Set the headphone volume level. Range is 0 to 1.0.
</p>
<p class=func><span class=keyword>inputLevel</span>(level);</p>
<p class=desc>not implemented
<p class=desc>Adjust the line level input gain. Range is 0 to 1.0.
</p>
<p class=func><span class=keyword>inputSelect</span>(input);</p>
<p class=desc>not implemented
<p class=desc>Select which input to use: AUDIO_INPUT_LINEIN or AUDIO_INPUT_MIC.
</p>
<!--
<h3>Examples</h3>
@@ -4171,25 +4171,29 @@ value frequency
</p>
<h3>Functions</h3>
<p class=func><span class=keyword>enable</span>();</p>
<p class=desc>blah blah blah blah
<p class=desc>Turn on the WS8731, in I2S Master mode. I2S slave mode
communication must be used by Teensy.
</p>
<p class=func><span class=keyword>disable</span>();</p>
<p class=desc>not implemented
</p>
<p class=func><span class=keyword>volume</span>(level);</p>
<p class=desc>blah blah blah blah
<p class=desc>Set the headphone volume level. Range is 0 to 1.0.
</p>
<p class=func><span class=keyword>inputLevel</span>(level);</p>
<p class=desc>not implemented
<p class=desc>Adjust the line level input gain. Range is 0 to 1.0.
</p>
<p class=func><span class=keyword>inputSelect</span>(input);</p>
<p class=desc>not implemented
<p class=desc>Select which input to use: AUDIO_INPUT_LINEIN or AUDIO_INPUT_MIC.
</p>
<h3>Examples</h3>
<p class=exam>File &gt; Examples &gt; Audio &gt; HardwareTesting &gt; WM8731MikroSine
</p>
<h3>Notes</h3>
<p></p>
<p>The WM8731 will implement a sample rate of its crystal frequency divided by 256.
To get the 44.1 kHz sample rate the Teensy Audio Library expects, an
11.2896 MHz crystal should be used.
</p>
</script>
<script type="text/x-red" data-template-name="AudioControlWM8731master">
<div class="form-row">

Yükleniyor…
İptal
Kaydet