You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.2 KiB
65 lines
2.2 KiB
8 years ago
|
<script type="text/x-red" data-help-name="AudioControlCS4272">
|
||
|
<h3>Summary</h3>
|
||
|
<div class=tooltipinfo>
|
||
|
<p>Control the CS4272 chip on the <a href="https://hackaday.io/project/5912-teensy-super-audio-board" target="_blank">Super Audio Board</a>.
|
||
|
</p>
|
||
|
<p>TODO: does this control object put the CS4272 into I2S master or slave mode</p>
|
||
|
</div>
|
||
|
<h3>Audio Connections</h3>
|
||
|
<p>This object has no audio inputs or outputs. Separate I2S objects
|
||
|
are used to send and receive audio data.
|
||
|
</p>
|
||
|
<h3>Functions</h3>
|
||
|
<p class=func><span class=keyword>enable</span>();</p>
|
||
|
<p class=desc>Enables the CODEC to work with 44.1 KHz - 16 bit data. This function does not enable the ADC/DAC modules.
|
||
|
</p>
|
||
|
<p class=func><span class=keyword>volume</span>(vol);</p>
|
||
|
<p class=desc>Set the volume level. Range is 0 to 1.0.
|
||
|
</p>
|
||
|
<p class=func><span class=keyword>volume</span>(left, right);</p>
|
||
|
<p class=desc>Set the volume level. Range is 0 to 1.0.
|
||
|
</p>
|
||
|
<p class=func><span class=keyword>dacVolume</span>(vol);</p>
|
||
|
<p class=desc>Set the volume level. Range is 0 to 1.0. TODO: what's the
|
||
|
distinction between volume() and dacVolume()?
|
||
|
</p>
|
||
|
<p class=func><span class=keyword>dacVolume</span>(left, right);</p>
|
||
|
<p class=desc>Set the volume level. Range is 0 to 1.0.
|
||
|
</p>
|
||
|
|
||
|
<p class=func><span class=keyword>muteOutput</span>();</p>
|
||
|
<p class=desc>TODO: description
|
||
|
</p>
|
||
|
<p class=func><span class=keyword>unmuteOutput</span>();</p>
|
||
|
<p class=desc>TODO: description
|
||
|
</p>
|
||
|
<p class=func><span class=keyword>muteInput</span>();</p>
|
||
|
<p class=desc>TODO: description
|
||
|
</p>
|
||
|
<p class=func><span class=keyword>unmuteInput</span>();</p>
|
||
|
<p class=desc>TODO: description
|
||
|
</p>
|
||
|
<p class=func><span class=keyword>enableDither</span>();</p>
|
||
|
<p class=desc>TODO: description
|
||
|
</p>
|
||
|
<p class=func><span class=keyword>disableDither</span>();</p>
|
||
|
<p class=desc>TODO: description
|
||
|
</p>
|
||
|
|
||
|
<h3>Hardware</h3>
|
||
|
<p>Pin 2 must be connected to the CS4272 reset. SDA & SCL are used for all control.
|
||
|
</p>
|
||
|
|
||
|
<h3>Notes</h3>
|
||
|
</script>
|
||
|
<script type="text/x-red" data-template-name="AudioControlCS4272">
|
||
|
<div class="form-row">
|
||
|
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
||
|
<input type="text" id="node-input-name" placeholder="Name">
|
||
|
</div>
|
||
|
</script>
|
||
|
|
||
|
|
||
|
|
||
|
|