Skip to content

Commit 8e70160

Browse files
committed
docs: Add links from quickref to pyb classes.
1 parent bc0bc76 commit 8e70160

10 files changed

Lines changed: 40 additions & 11 deletions

File tree

docs/library/pyb.ADC.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _pyb.ADC:
2+
13
class ADC -- analog to digital conversion: read analog values on a pin
24
======================================================================
35

docs/library/pyb.DAC.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _pyb.DAC:
2+
13
class DAC -- digital to analog conversion
24
=========================================
35

docs/library/pyb.ExtInt.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _pyb.ExtInt:
2+
13
class ExtInt -- configure I/O pins to interrupt on external events
24
==================================================================
35

docs/library/pyb.I2C.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _pyb.I2C:
2+
13
class I2C -- a two-wire serial protocol
24
=======================================
35

docs/library/pyb.LED.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _pyb.LED:
2+
13
class LED -- LED object
24
=======================
35

docs/library/pyb.Pin.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _pyb.Pin:
2+
13
class Pin -- control I/O pins
24
=============================
35

docs/library/pyb.SPI.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _pyb.SPI:
2+
13
class SPI -- a master-driven serial protocol
24
============================================
35

docs/library/pyb.Timer.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _pyb.Timer:
2+
13
class Timer -- control internal timers
24
======================================
35

docs/library/pyb.UART.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _pyb.UART:
2+
13
class UART -- duplex serial communication bus
24
=============================================
35

docs/quickref.rst

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Quick reference for the pyboard
99

1010
General board control
1111
---------------------
12-
::
12+
13+
See :mod:`pyb`. ::
1314

1415
import pyb
1516

@@ -23,7 +24,8 @@ General board control
2324

2425
LEDs
2526
----
26-
::
27+
28+
See :ref:`pyb.LED <pyb.LED>`. ::
2729

2830
from pyb import LED
2931

@@ -34,7 +36,8 @@ LEDs
3436

3537
Pins and GPIO
3638
-------------
37-
::
39+
40+
See :ref:`pyb.Pin <pyb.Pin>`. ::
3841

3942
from pyb import Pin
4043

@@ -47,7 +50,8 @@ Pins and GPIO
4750

4851
External interrupts
4952
-------------------
50-
::
53+
54+
See :ref:`pyb.ExtInt <pyb.ExtInt>`. ::
5155

5256
from pyb import Pin, ExtInt
5357

@@ -56,7 +60,8 @@ External interrupts
5660

5761
Timers
5862
------
59-
::
63+
64+
See :ref:`pyb.Timer <pyb.Timer>`. ::
6065

6166
from pyb import Timer
6267

@@ -67,7 +72,8 @@ Timers
6772

6873
PWM (pulse width modulation)
6974
----------------------------
70-
::
75+
76+
See :ref:`pyb.Pin <pyb.Pin>` and :ref:`pyb.Timer <pyb.Timer>`. ::
7177

7278
from pyb import Pin, Timer
7379

@@ -78,7 +84,8 @@ PWM (pulse width modulation)
7884

7985
ADC (analog to digital conversion)
8086
----------------------------------
81-
::
87+
88+
See :ref:`pyb.Pin <pyb.Pin>` and :ref:`pyb.ADC <pyb.ADC>`. ::
8289

8390
from pyb import Pin, ADC
8491

@@ -87,7 +94,8 @@ ADC (analog to digital conversion)
8794

8895
DAC (digital to analog conversion)
8996
----------------------------------
90-
::
97+
98+
See :ref:`pyb.Pin <pyb.Pin>` and :ref:`pyb.DAC <pyb.DAC>`. ::
9199

92100
from pyb import Pin, DAC
93101

@@ -96,7 +104,8 @@ DAC (digital to analog conversion)
96104

97105
UART (serial bus)
98106
-----------------
99-
::
107+
108+
See :ref:`pyb.UART <pyb.UART>`. ::
100109

101110
from pyb import UART
102111

@@ -106,7 +115,8 @@ UART (serial bus)
106115

107116
SPI bus
108117
-------
109-
::
118+
119+
See :ref:`pyb.SPI <pyb.SPI>`. ::
110120

111121
from pyb import SPI
112122

@@ -117,7 +127,8 @@ SPI bus
117127

118128
I2C bus
119129
-------
120-
::
130+
131+
See :ref:`pyb.I2C <pyb.I2C>`. ::
121132

122133
from pyb import I2C
123134

0 commit comments

Comments
 (0)