Skip to content

Commit 4471082

Browse files
committed
Merge pull request gpiozero#355 from lurch/patch-2
Add extra product URLs to the boards.py docstrings
2 parents ea1ec45 + 97202b9 commit 4471082

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

gpiozero/boards.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ def __init__(self, lights, buzzer, button):
690690

691691
class FishDish(TrafficLightsBuzzer):
692692
"""
693-
Extends :class:`TrafficLightsBuzzer` for the Pi Supply FishDish: traffic
693+
Extends :class:`TrafficLightsBuzzer` for the `Pi Supply FishDish`_: traffic
694694
light LEDs, a button and a buzzer.
695695
696696
The FishDish pins are fixed and therefore there's no need to specify them
@@ -707,6 +707,8 @@ class FishDish(TrafficLightsBuzzer):
707707
If ``True``, construct :class:`PWMLED` instances to represent each
708708
LED. If ``False`` (the default), construct regular :class:`LED`
709709
instances.
710+
711+
.. _Pi Supply FishDish: https://www.pi-supply.com/product/fish-dish-raspberry-pi-led-buzzer-board/
710712
"""
711713

712714
def __init__(self, pwm=False):
@@ -719,7 +721,7 @@ def __init__(self, pwm=False):
719721

720722
class TrafficHat(TrafficLightsBuzzer):
721723
"""
722-
Extends :class:`TrafficLightsBuzzer` for the Ryanteck Traffic HAT: traffic
724+
Extends :class:`TrafficLightsBuzzer` for the `Ryanteck Traffic HAT`_: traffic
723725
light LEDs, a button and a buzzer.
724726
725727
The Traffic HAT pins are fixed and therefore there's no need to specify
@@ -736,6 +738,8 @@ class TrafficHat(TrafficLightsBuzzer):
736738
If ``True``, construct :class:`PWMLED` instances to represent each
737739
LED. If ``False`` (the default), construct regular :class:`LED`
738740
instances.
741+
742+
.. _Ryanteck Traffic HAT: https://ryanteck.uk/hats/1-traffichat-0635648607122.html
739743
"""
740744

741745
def __init__(self, pwm=False):
@@ -856,7 +860,7 @@ def stop(self):
856860

857861
class RyanteckRobot(Robot):
858862
"""
859-
Extends :class:`Robot` for the Ryanteck MCB robot.
863+
Extends :class:`Robot` for the `Ryanteck MCB`_ robot.
860864
861865
The Ryanteck MCB pins are fixed and therefore there's no need to specify
862866
them when constructing this class. The following example turns the robot
@@ -866,6 +870,8 @@ class RyanteckRobot(Robot):
866870
867871
robot = RyanteckRobot()
868872
robot.left()
873+
874+
.. _Ryanteck MCB: https://ryanteck.uk/add-ons/6-ryanteck-rpi-motor-controller-board-0635648607160.html
869875
"""
870876

871877
def __init__(self):

0 commit comments

Comments
 (0)