diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-09-25 19:42:27 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-09-25 19:42:27 +0100 |
| commit | 55a5b807937a4be8d57153970d723bc31113b6d4 (patch) | |
| tree | b7b355b495f7050df44550810931dc5ca558e7be /docs/tutorial/amp_skin.rst | |
| parent | cde0ca21bf79420386c7cb31de29b0f799f16655 (diff) | |
docs: Make images and youtube video links work for LCD and AMP docs.v1.3.2
Images are currently served from micropython.org/static. I don't know
if there is a better way to handle images.
Diffstat (limited to 'docs/tutorial/amp_skin.rst')
| -rw-r--r-- | docs/tutorial/amp_skin.rst | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/docs/tutorial/amp_skin.rst b/docs/tutorial/amp_skin.rst index 34531e688..988bcc2bc 100644 --- a/docs/tutorial/amp_skin.rst +++ b/docs/tutorial/amp_skin.rst @@ -3,19 +3,26 @@ The AMP audio skin Soldering and using the AMP audio skin. -[<img src="/static/doc/skin-amp-1.jpg" alt="AMP skin" style="width:250px; border:1px solid black; display:inline-block;"/>](/static/doc/skin-amp-1.jpg) -[<img src="/static/doc/skin-amp-3.jpg" alt="AMP skin" style="width:250px; border:1px solid black; display:inline-block;"/>](/static/doc/skin-amp-3.jpg) +.. image:: http://micropython.org/static/doc/skin-amp-1.jpg + :alt: AMP skin + :width: 250px + +.. image:: http://micropython.org/static/doc/skin-amp-3.jpg + :alt: AMP skin + :width: 250px The following video shows how to solder the headers, microphone and speaker onto the AMP skin. -<iframe style="margin-left:3em;" width="560" height="315" src="//www.youtube.com/embed/fjB1DuZRveo?rel=0" frameborder="0" allowfullscreen></iframe> +.. raw:: html + + <iframe style="margin-left:3em;" width="560" height="315" src="http://www.youtube.com/embed/fjB1DuZRveo?rel=0" frameborder="0" allowfullscreen></iframe> Example code ------------ -The AMP skin has a speaker which is connected to DAC(1) via a small +The AMP skin has a speaker which is connected to ``DAC(1)`` via a small power amplifier. The volume of the amplifier is controlled by a digital -potentiometer, which is an I2C device with address 46 on the IC2(1) bus. +potentiometer, which is an I2C device with address 46 on the ``IC2(1)`` bus. To set the volume, define the following function:: |
