docs/pyboard: Fix to use Sphinx style for internal/external links.
parent
40a7e8c472
commit
ad4fb62f13
|
@ -3,7 +3,7 @@ Controlling hobby servo motors
|
||||||
|
|
||||||
There are 4 dedicated connection points on the pyboard for connecting up
|
There are 4 dedicated connection points on the pyboard for connecting up
|
||||||
hobby servo motors (see eg
|
hobby servo motors (see eg
|
||||||
[Wikipedia](http://en.wikipedia.org/wiki/Servo_%28radio_control%29)).
|
`Wikipedia <http://en.wikipedia.org/wiki/Servo_%28radio_control%29>`__).
|
||||||
These motors have 3 wires: ground, power and signal. On the pyboard you
|
These motors have 3 wires: ground, power and signal. On the pyboard you
|
||||||
can connect them in the bottom right corner, with the signal pin on the
|
can connect them in the bottom right corner, with the signal pin on the
|
||||||
far right. Pins X1, X2, X3 and X4 are the 4 dedicated servo signal pins.
|
far right. Pins X1, X2, X3 and X4 are the 4 dedicated servo signal pins.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
.. _pyboard_tutorial_switch:
|
||||||
|
|
||||||
The Switch, callbacks and interrupts
|
The Switch, callbacks and interrupts
|
||||||
====================================
|
====================================
|
||||||
|
|
||||||
|
|
|
@ -50,8 +50,8 @@ Timer callbacks
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
The next thing we can do is register a callback function for the timer to
|
The next thing we can do is register a callback function for the timer to
|
||||||
execute when it triggers (see the [switch tutorial](tut-switch) for an
|
execute when it triggers (see the :ref:`switch tutorial <pyboard_tutorial_switch>`
|
||||||
introduction to callback functions)::
|
for an introduction to callback functions)::
|
||||||
|
|
||||||
>>> tim.callback(lambda t:pyb.LED(1).toggle())
|
>>> tim.callback(lambda t:pyb.LED(1).toggle())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue