From 55a5b807937a4be8d57153970d723bc31113b6d4 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 25 Sep 2014 19:42:27 +0100 Subject: [PATCH] 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. --- docs/tutorial/amp_skin.rst | 17 ++++++++++++----- docs/tutorial/lcd_skin.rst | 13 ++++++++++--- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/docs/tutorial/amp_skin.rst b/docs/tutorial/amp_skin.rst index 34531e6881..988bcc2bca 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. -[AMP skin](/static/doc/skin-amp-1.jpg) -[AMP skin](/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. - +.. raw:: html + + 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:: diff --git a/docs/tutorial/lcd_skin.rst b/docs/tutorial/lcd_skin.rst index 20f7543094..86f0be0aa9 100644 --- a/docs/tutorial/lcd_skin.rst +++ b/docs/tutorial/lcd_skin.rst @@ -3,13 +3,20 @@ The LCD and touch-sensor skin Soldering and using the LCD and touch-sensor skin. -[pyboard with LCD skin](/static/doc/skin-lcd-3.jpg) -[pyboard with LCD skin](/static/doc/skin-lcd-1.jpg) +.. image:: http://micropython.org/static/doc/skin-lcd-3.jpg + :alt: pyboard with LCD skin + :width: 250px + +.. image:: http://micropython.org/static/doc/skin-lcd-1.jpg + :alt: pyboard with LCD skin + :width: 250px The following video shows how to solder the headers onto the LCD skin. At the end of the video, it shows you how to correctly connect the LCD skin to the pyboard. - +.. raw:: html + + Using the LCD -------------