Skip to content

Commit 55a5b80

Browse files
committed
docs: Make images and youtube video links work for LCD and AMP docs.
Images are currently served from micropython.org/static. I don't know if there is a better way to handle images.
1 parent cde0ca2 commit 55a5b80

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

docs/tutorial/amp_skin.rst

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,26 @@ The AMP audio skin
33

44
Soldering and using the AMP audio skin.
55

6-
[<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)
7-
[<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)
6+
.. image:: http://micropython.org/static/doc/skin-amp-1.jpg
7+
:alt: AMP skin
8+
:width: 250px
9+
10+
.. image:: http://micropython.org/static/doc/skin-amp-3.jpg
11+
:alt: AMP skin
12+
:width: 250px
813

914
The following video shows how to solder the headers, microphone and speaker onto the AMP skin.
1015

11-
<iframe style="margin-left:3em;" width="560" height="315" src="//www.youtube.com/embed/fjB1DuZRveo?rel=0" frameborder="0" allowfullscreen></iframe>
16+
.. raw:: html
17+
18+
<iframe style="margin-left:3em;" width="560" height="315" src="http://www.youtube.com/embed/fjB1DuZRveo?rel=0" frameborder="0" allowfullscreen></iframe>
1219

1320
Example code
1421
------------
1522

16-
The AMP skin has a speaker which is connected to DAC(1) via a small
23+
The AMP skin has a speaker which is connected to ``DAC(1)`` via a small
1724
power amplifier. The volume of the amplifier is controlled by a digital
18-
potentiometer, which is an I2C device with address 46 on the IC2(1) bus.
25+
potentiometer, which is an I2C device with address 46 on the ``IC2(1)`` bus.
1926

2027
To set the volume, define the following function::
2128

docs/tutorial/lcd_skin.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@ The LCD and touch-sensor skin
33

44
Soldering and using the LCD and touch-sensor skin.
55

6-
[<img src="/static/doc/skin-lcd-3.jpg" alt="pyboard with LCD skin" style="width:250px; border:1px solid black; display:inline-block;"/>](/static/doc/skin-lcd-3.jpg)
7-
[<img src="/static/doc/skin-lcd-1.jpg" alt="pyboard with LCD skin" style="width:250px; border:1px solid black; display:inline-block;"/>](/static/doc/skin-lcd-1.jpg)
6+
.. image:: http://micropython.org/static/doc/skin-lcd-3.jpg
7+
:alt: pyboard with LCD skin
8+
:width: 250px
9+
10+
.. image:: http://micropython.org/static/doc/skin-lcd-1.jpg
11+
:alt: pyboard with LCD skin
12+
:width: 250px
813

914
The following video shows how to solder the headers onto the LCD skin.
1015
At the end of the video, it shows you how to correctly connect the LCD skin to the pyboard.
1116

12-
<iframe style="margin-left:3em;" width="560" height="315" src="//www.youtube.com/embed/PowCzdLYbFM?rel=0" frameborder="0" allowfullscreen></iframe>
17+
.. raw:: html
18+
19+
<iframe style="margin-left:3em;" width="560" height="315" src="http://www.youtube.com/embed/PowCzdLYbFM?rel=0" frameborder="0" allowfullscreen></iframe>
1320

1421
Using the LCD
1522
-------------

0 commit comments

Comments
 (0)