Skip to content
Snippets Groups Projects
Commit 47f349e7 authored by Damien George's avatar Damien George
Browse files

docs: Fix links to images and other parts of the docs.

parent c92ef361
No related branches found
No related tags found
No related merge requests found
.. _quickref:
Quick reference for the pyboard Quick reference for the pyboard
===================================== ===============================
.. image:: http://micropython.org/static/resources/pybv10-pinout.jpg .. image:: http://micropython.org/static/resources/pybv10-pinout.jpg
:alt: AMP skin :alt: AMP skin
......
...@@ -20,11 +20,11 @@ Connecting Things Up ...@@ -20,11 +20,11 @@ Connecting Things Up
For this tutorial, we will use the ``X1`` pin. Connect one end of the resistor to ``X1``, and the other end to the **anode** of the LED, which is the longer leg. Connect the **cathode** of the LED to ground. For this tutorial, we will use the ``X1`` pin. Connect one end of the resistor to ``X1``, and the other end to the **anode** of the LED, which is the longer leg. Connect the **cathode** of the LED to ground.
.. image:: https://raw.githubusercontent.com/freespace/micropython/master/docs/tutorial/imgs/fading_leds_breadboard_fritzing.png .. image:: img/fading_leds_breadboard_fritzing.png
Code Code
==== ====
By examining the `quick reference <http://docs.micropython.org/en/latest/quickref.html>`_, we see that ``X1`` is connected to channel 1 of timer 5 (``TIM5 CH1``). Therefore we will first create a ``Timer`` object for timer 5, then create a ``TimerChannel`` object for channel 1:: By examining the :ref:`quickref`, we see that ``X1`` is connected to channel 1 of timer 5 (``TIM5 CH1``). Therefore we will first create a ``Timer`` object for timer 5, then create a ``TimerChannel`` object for channel 1::
from pyb import Timer from pyb import Timer
from timer import sleep from timer import sleep
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -31,5 +31,6 @@ Tutorials requiring extra components ...@@ -31,5 +31,6 @@ Tutorials requiring extra components
:numbered: :numbered:
servo.rst servo.rst
fading_led.rst
lcd_skin.rst lcd_skin.rst
amp_skin.rst amp_skin.rst
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment