summaryrefslogtreecommitdiffstatshomepage
path: root/docs/tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tutorial')
-rw-r--r--docs/tutorial/amp_skin.rst10
-rw-r--r--docs/tutorial/img/skin_amp_1.jpgbin0 -> 83408 bytes
-rw-r--r--docs/tutorial/img/skin_amp_2.jpgbin0 -> 75075 bytes
-rw-r--r--docs/tutorial/img/skin_lcd_1.jpgbin0 -> 99320 bytes
-rw-r--r--docs/tutorial/img/skin_lcd_2.jpgbin0 -> 69460 bytes
-rw-r--r--docs/tutorial/lcd_skin.rst8
-rw-r--r--docs/tutorial/script.rst8
7 files changed, 13 insertions, 13 deletions
diff --git a/docs/tutorial/amp_skin.rst b/docs/tutorial/amp_skin.rst
index fbf0bde2d3..dd949e180f 100644
--- a/docs/tutorial/amp_skin.rst
+++ b/docs/tutorial/amp_skin.rst
@@ -3,11 +3,11 @@ The AMP audio skin
Soldering and using the AMP audio skin.
-.. image:: http://micropython.org/static/doc/skin-amp-1.jpg
+.. image:: img/skin_amp_1.jpg
:alt: AMP skin
:width: 250px
-.. image:: http://micropython.org/static/doc/skin-amp-3.jpg
+.. image:: img/skin_amp_2.jpg
:alt: AMP skin
:width: 250px
@@ -51,11 +51,11 @@ For example::
dac.write_timed(buf, 400 * len(buf), mode=DAC.CIRCULAR)
You can also play WAV files using the Python ``wave`` module. You can get
-the wave module `here <http://micropython.org/static/doc/examples/wave.py>`_ and you will also need
-the chunk module available `here <http://micropython.org/static/doc/examples/chunk.py>`_. Put these
+the wave module `here <http://micropython.org/resources/examples/wave.py>`_ and you will also need
+the chunk module available `here <http://micropython.org/resources/examples/chunk.py>`_. Put these
on your pyboard (either on the flash or the SD card in the top-level
directory). You will need an 8-bit WAV file to play, such as
-`this one <http://micropython.org/static/doc/examples/test.wav>`_. Then you can do::
+`this one <http://micropython.org/resources/examples/test.wav>`_. Then you can do::
>>> import wave
>>> from pyb import DAC
diff --git a/docs/tutorial/img/skin_amp_1.jpg b/docs/tutorial/img/skin_amp_1.jpg
new file mode 100644
index 0000000000..df44460080
--- /dev/null
+++ b/docs/tutorial/img/skin_amp_1.jpg
Binary files differ
diff --git a/docs/tutorial/img/skin_amp_2.jpg b/docs/tutorial/img/skin_amp_2.jpg
new file mode 100644
index 0000000000..7631b3b633
--- /dev/null
+++ b/docs/tutorial/img/skin_amp_2.jpg
Binary files differ
diff --git a/docs/tutorial/img/skin_lcd_1.jpg b/docs/tutorial/img/skin_lcd_1.jpg
new file mode 100644
index 0000000000..1dda73ffd5
--- /dev/null
+++ b/docs/tutorial/img/skin_lcd_1.jpg
Binary files differ
diff --git a/docs/tutorial/img/skin_lcd_2.jpg b/docs/tutorial/img/skin_lcd_2.jpg
new file mode 100644
index 0000000000..6e3e1033ef
--- /dev/null
+++ b/docs/tutorial/img/skin_lcd_2.jpg
Binary files differ
diff --git a/docs/tutorial/lcd_skin.rst b/docs/tutorial/lcd_skin.rst
index 288b63162a..8f981de635 100644
--- a/docs/tutorial/lcd_skin.rst
+++ b/docs/tutorial/lcd_skin.rst
@@ -3,11 +3,11 @@ The LCD and touch-sensor skin
Soldering and using the LCD and touch-sensor skin.
-.. image:: http://micropython.org/static/doc/skin-lcd-3.jpg
+.. image:: img/skin_lcd_1.jpg
:alt: pyboard with LCD skin
:width: 250px
-.. image:: http://micropython.org/static/doc/skin-lcd-1.jpg
+.. image:: img/skin_lcd_2.jpg
:alt: pyboard with LCD skin
:width: 250px
@@ -58,7 +58,7 @@ enables the 4 touch sensors. The third line reads the touch
status and the ``touch`` variable holds the state of the 4 touch
buttons (A, B, X, Y).
-There is a simple driver `here <http://micropython.org/static/doc/examples/mpr121.py>`_
+There is a simple driver `here <http://micropython.org/resources/examples/mpr121.py>`_
which allows you to set the threshold and debounce parameters, and
easily read the touch status and electrode voltage levels. Copy
this script to your pyboard (either flash or SD card, in the top
@@ -81,4 +81,4 @@ initialise the I2C bus using::
>>> m = mpr121.MPR121(pyb.I2C(2, pyb.I2C.MASTER))
There is also a demo which uses the LCD and the touch sensors together,
-and can be found `here <http://micropython.org/static/doc/examples/lcddemo.py>`_.
+and can be found `here <http://micropython.org/resources/examples/lcddemo.py>`_.
diff --git a/docs/tutorial/script.rst b/docs/tutorial/script.rst
index d1b12ae6d1..011484722c 100644
--- a/docs/tutorial/script.rst
+++ b/docs/tutorial/script.rst
@@ -46,16 +46,16 @@ a window (or command line) should be showing the files on the pyboard drive.
The drive you are looking at is known as ``/flash`` by the pyboard, and should contain
the following 4 files:
-* `boot.py <http://micropython.org/static/doc/fresh-pyboard/boot.py>`_ -- this script is executed when the pyboard boots up. It sets
+* `boot.py <http://micropython.org/resources/fresh-pyboard/boot.py>`_ -- this script is executed when the pyboard boots up. It sets
up various configuration options for the pyboard.
-* `main.py <http://micropython.org/static/doc/fresh-pyboard/main.py>`_ -- this is the main script that will contain your Python program.
+* `main.py <http://micropython.org/resources/fresh-pyboard/main.py>`_ -- this is the main script that will contain your Python program.
It is executed after ``boot.py``.
-* `README.txt <http://micropython.org/static/doc/fresh-pyboard/README.txt>`_ -- this contains some very basic information about getting
+* `README.txt <http://micropython.org/resources/fresh-pyboard/README.txt>`_ -- this contains some very basic information about getting
started with the pyboard.
-* `pybcdc.inf <http://micropython.org/static/doc/fresh-pyboard/pybcdc.inf>`_ -- this is a Windows driver file to configure the serial USB
+* `pybcdc.inf <http://micropython.org/resources/fresh-pyboard/pybcdc.inf>`_ -- this is a Windows driver file to configure the serial USB
device. More about this in the next tutorial.
Editing ``main.py``