Skip to content

Commit 9175482

Browse files
committed
docs/library: Remove unnecessary "pyb." prefix on class names.
Otherwise these classes are refered to with a double prefix, like pyb.pyb.ADC. Signed-off-by: Damien George <[email protected]>
1 parent 89e1e67 commit 9175482

18 files changed

+19
-19
lines changed

docs/library/pyb.ADC.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Usage::
2323
Constructors
2424
------------
2525

26-
.. class:: pyb.ADC(pin)
26+
.. class:: ADC(pin)
2727

2828
Create an ADC object associated with the given pin.
2929
This allows you to then read analog values on that pin.

docs/library/pyb.Accel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Raw values are between -32 and 31.
1616
Constructors
1717
------------
1818

19-
.. class:: pyb.Accel()
19+
.. class:: Accel()
2020

2121
Create and return an accelerometer object.
2222

docs/library/pyb.CAN.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ for both classic and FD CAN controllers, unless otherwise stated.
3131
Constructors
3232
------------
3333

34-
.. class:: pyb.CAN(bus, ...)
34+
.. class:: CAN(bus, ...)
3535

3636
Construct a CAN object on the given bus. *bus* can be 1-2, or ``'YA'`` or ``'YB'``.
3737
With no additional parameters, the CAN object is created but not

docs/library/pyb.DAC.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ To output a continuous sine-wave at 12-bit resolution::
4949
Constructors
5050
------------
5151

52-
.. class:: pyb.DAC(port, bits=8, *, buffering=None)
52+
.. class:: DAC(port, bits=8, *, buffering=None)
5353

5454
Construct a new DAC object.
5555

docs/library/pyb.ExtInt.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ usrsw.h for an example of using this.
5151
Constructors
5252
------------
5353

54-
.. class:: pyb.ExtInt(pin, mode, pull, callback)
54+
.. class:: ExtInt(pin, mode, pull, callback)
5555

5656
Create an ExtInt object:
5757

docs/library/pyb.Flash.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ application.
1515
Constructors
1616
------------
1717

18-
.. class:: pyb.Flash()
18+
.. class:: Flash()
1919

2020
Create and return a block device that represents the flash device presented
2121
to the USB mass storage interface.
@@ -25,7 +25,7 @@ Constructors
2525

2626
This constructor is deprecated and will be removed in a future version of MicroPython.
2727

28-
.. class:: pyb.Flash(*, start=-1, len=-1)
28+
.. class:: Flash(*, start=-1, len=-1)
2929
:noindex:
3030

3131
Create and return a block device that accesses the flash at the specified offset. The length defaults to the remaining size of the device.

docs/library/pyb.I2C.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Master also has other methods::
5656
Constructors
5757
------------
5858

59-
.. class:: pyb.I2C(bus, ...)
59+
.. class:: I2C(bus, ...)
6060

6161
Construct an I2C object on the given bus. ``bus`` can be 1 or 2, 'X' or
6262
'Y'. With no additional parameters, the I2C object is created but not

docs/library/pyb.LCD.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ For example, to make a bouncing dot, try::
4141
Constructors
4242
------------
4343

44-
.. class:: pyb.LCD(skin_position)
44+
.. class:: LCD(skin_position)
4545

4646
Construct an LCD object in the given skin position. ``skin_position`` can be 'X' or 'Y', and
4747
should match the position where the LCD pyskin is plugged in.

docs/library/pyb.LED.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The LED object controls an individual LED (Light Emitting Diode).
1010
Constructors
1111
------------
1212

13-
.. class:: pyb.LED(id)
13+
.. class:: LED(id)
1414

1515
Create an LED object associated with the given LED:
1616

docs/library/pyb.Pin.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ gpio pins.
7474
Constructors
7575
------------
7676

77-
.. class:: pyb.Pin(id, ...)
77+
.. class:: Pin(id, ...)
7878

7979
Create a new Pin object associated with the id. If additional arguments are given,
8080
they are used to initialise the pin. See :meth:`pin.init`.

0 commit comments

Comments
 (0)