diff options
author | Daniel Campora <daniel@wipy.io> | 2015-06-10 23:29:56 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-06-10 23:37:56 +0200 |
commit | cfcf47c0644952358e1a260db159e807872a37e6 (patch) | |
tree | 02522a025a7b803d7de0589dd743b34f3daa4634 /docs/pyboard/tutorial | |
parent | b630de1103cd07ac0656c76c7f90d92312705835 (diff) | |
download | micropython-cfcf47c0644952358e1a260db159e807872a37e6.tar.gz micropython-cfcf47c0644952358e1a260db159e807872a37e6.zip |
docs: Add initial draft documentation for the WiPy.
This makes all common files "port-aware" using the .. only directive.
Diffstat (limited to 'docs/pyboard/tutorial')
-rw-r--r-- | docs/pyboard/tutorial/amp_skin.rst | 4 | ||||
-rw-r--r-- | docs/pyboard/tutorial/lcd_skin.rst | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/pyboard/tutorial/amp_skin.rst b/docs/pyboard/tutorial/amp_skin.rst index 9aaf84c753..64f139bb7e 100644 --- a/docs/pyboard/tutorial/amp_skin.rst +++ b/docs/pyboard/tutorial/amp_skin.rst @@ -53,8 +53,8 @@ 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/resources/examples/wave.py>`_ and you will also need -the chunk module available `here <http://micropython.org/resources/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/resources/examples/test.wav>`_, or to convert any file you have with the command:: diff --git a/docs/pyboard/tutorial/lcd_skin.rst b/docs/pyboard/tutorial/lcd_skin.rst index 4f3b30a4a0..288ac1bf08 100644 --- a/docs/pyboard/tutorial/lcd_skin.rst +++ b/docs/pyboard/tutorial/lcd_skin.rst @@ -60,7 +60,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/resources/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 @@ -83,4 +83,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/resources/examples/lcddemo.py>`_. +and can be found `here <http://micropython.org/resources/examples/lcddemo.py>`__. |