kopia lustrzana https://github.com/micropython/micropython
docs: Add skin imgs; change external links to micropython.org/resources.
rodzic
72165c01f0
commit
1e3fde0a10
|
@ -1,13 +1,20 @@
|
||||||
The pyboard hardware
|
The pyboard hardware
|
||||||
====================
|
====================
|
||||||
|
|
||||||
* `PYBv1.0 schematics and layout <http://micropython.org/static/doc/PYBv10b.pdf>`_ (2.4MiB PDF)
|
* `PYBv1.0 schematics and layout <http://micropython.org/resources/PYBv10b.pdf>`_ (2.4MiB PDF)
|
||||||
* `PYBv1.0 metric dimensions <http://micropython.org/static/doc/PYBv10b-metric-dimensions.pdf>`_ (360KiB PDF)
|
* `PYBv1.0 metric dimensions <http://micropython.org/resources/PYBv10b-metric-dimensions.pdf>`_ (360KiB PDF)
|
||||||
* `PYBv1.0 imperial dimensions <http://micropython.org/static/doc/PYBv10b-imperial-dimensions.pdf>`_ (360KiB PDF)
|
* `PYBv1.0 imperial dimensions <http://micropython.org/resources/PYBv10b-imperial-dimensions.pdf>`_ (360KiB PDF)
|
||||||
|
|
||||||
Datasheets for the components on the pyboard
|
Datasheets for the components on the pyboard
|
||||||
============================================
|
============================================
|
||||||
|
|
||||||
* The microcontroller: `STM32F405RGT6 <http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1577/LN1035/PF252144>`_ (link to manufacturer's site)
|
* The microcontroller: `STM32F405RGT6 <http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1577/LN1035/PF252144>`_ (link to manufacturer's site)
|
||||||
* The accelerometer: `Freescale MMA7660 <http://micropython.org/static/doc/MMA7660FC.pdf>`_ (800kiB PDF)
|
* The accelerometer: `Freescale MMA7660 <http://micropython.org/resources/datasheets/MMA7660FC.pdf>`_ (800kiB PDF)
|
||||||
* The LDO voltage regulator: `Microchip MCP1802 <http://micropython.org/static/doc/MCP1802-22053C.pdf>`_ (400kiB PDF)
|
* The LDO voltage regulator: `Microchip MCP1802 <http://micropython.org/resources/datasheets/MCP1802-22053C.pdf>`_ (400kiB PDF)
|
||||||
|
|
||||||
|
Datasheets for other components
|
||||||
|
===============================
|
||||||
|
|
||||||
|
* The LCD display on the LCD touch-sensor skin: `Newhaven Display NHD-C12832A1Z-FSW-FBW-3V3 <http://micropython.org/resources/datasheets/NHD-C12832A1Z-FSW-FBW-3V3.pdf>`_ (460KiB PDF)
|
||||||
|
* The touch sensor chip on the LCD touch-sensor skin: `Freescale MPR121 <http://micropython.org/resources/datasheets/MPR121.pdf>`_
|
||||||
|
* The digital potentiometer on the audio skin: `Microchip MCP4541 <http://micropython.org/resources/datasheets/MCP4541-22107B.pdf>`_
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
Quick reference for the pyboard
|
Quick reference for the pyboard
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
.. image:: http://micropython.org/static/resources/pybv10-pinout.jpg
|
.. image:: http://micropython.org/resources/pybv10-pinout.jpg
|
||||||
:alt: AMP skin
|
:alt: PYBv1.0 pinout
|
||||||
:width: 700px
|
:width: 700px
|
||||||
|
|
||||||
General board control
|
General board control
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<span class="linkdescr">schematics, dimensions and component datasheets</span>
|
<span class="linkdescr">schematics, dimensions and component datasheets</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="biglink">
|
<p class="biglink">
|
||||||
<a class="biglink" href="http://micropython.org/static/doc/Micro-Python-Windows-setup.pdf">Guide for pyboard on Windows (PDF)</a><br/>
|
<a class="biglink" href="http://micropython.org/resources/Micro-Python-Windows-setup.pdf">Guide for pyboard on Windows (PDF)</a><br/>
|
||||||
<span class="linkdescr">including DFU programming</span>
|
<span class="linkdescr">including DFU programming</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="biglink">
|
<p class="biglink">
|
||||||
|
|
|
@ -3,11 +3,11 @@ The AMP audio skin
|
||||||
|
|
||||||
Soldering and using 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
|
:alt: AMP skin
|
||||||
:width: 250px
|
:width: 250px
|
||||||
|
|
||||||
.. image:: http://micropython.org/static/doc/skin-amp-3.jpg
|
.. image:: img/skin_amp_2.jpg
|
||||||
:alt: AMP skin
|
:alt: AMP skin
|
||||||
:width: 250px
|
:width: 250px
|
||||||
|
|
||||||
|
@ -51,11 +51,11 @@ For example::
|
||||||
dac.write_timed(buf, 400 * len(buf), mode=DAC.CIRCULAR)
|
dac.write_timed(buf, 400 * len(buf), mode=DAC.CIRCULAR)
|
||||||
|
|
||||||
You can also play WAV files using the Python ``wave`` module. You can get
|
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 wave module `here <http://micropython.org/resources/examples/wave.py>`_ and you will also need
|
||||||
the chunk module available `here <http://micropython.org/static/doc/examples/chunk.py>`_. Put these
|
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
|
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
|
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
|
>>> import wave
|
||||||
>>> from pyb import DAC
|
>>> from pyb import DAC
|
||||||
|
|
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 82 KiB |
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 73 KiB |
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 97 KiB |
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 68 KiB |
|
@ -3,11 +3,11 @@ The LCD and touch-sensor skin
|
||||||
|
|
||||||
Soldering and using 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
|
:alt: pyboard with LCD skin
|
||||||
:width: 250px
|
:width: 250px
|
||||||
|
|
||||||
.. image:: http://micropython.org/static/doc/skin-lcd-1.jpg
|
.. image:: img/skin_lcd_2.jpg
|
||||||
:alt: pyboard with LCD skin
|
:alt: pyboard with LCD skin
|
||||||
:width: 250px
|
: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
|
status and the ``touch`` variable holds the state of the 4 touch
|
||||||
buttons (A, B, X, Y).
|
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
|
which allows you to set the threshold and debounce parameters, and
|
||||||
easily read the touch status and electrode voltage levels. Copy
|
easily read the touch status and electrode voltage levels. Copy
|
||||||
this script to your pyboard (either flash or SD card, in the top
|
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))
|
>>> m = mpr121.MPR121(pyb.I2C(2, pyb.I2C.MASTER))
|
||||||
|
|
||||||
There is also a demo which uses the LCD and the touch sensors together,
|
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>`_.
|
||||||
|
|
|
@ -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 drive you are looking at is known as ``/flash`` by the pyboard, and should contain
|
||||||
the following 4 files:
|
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.
|
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``.
|
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.
|
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.
|
device. More about this in the next tutorial.
|
||||||
|
|
||||||
Editing ``main.py``
|
Editing ``main.py``
|
||||||
|
|
Ładowanie…
Reference in New Issue