Skip to content

Commit

Permalink
Merge pull request #846 from gpiozero/trafficphat
Browse files Browse the repository at this point in the history
Add Trafficphat and update Ryanteck boards
  • Loading branch information
bennuttall committed Mar 18, 2020
2 parents 917ec8c + f26db74 commit fd4ed45
Show file tree
Hide file tree
Showing 29 changed files with 431 additions and 336 deletions.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ Other contributors:
- `Philippe Muller`_
- `Rick Ansell`_
- `Russel Winder`_
- `Ryan Walmsley`_
- `Schelto van Doorn`_
- `Sofiia Kosovan`_
- `Steve Amor`_
Expand Down Expand Up @@ -194,6 +195,7 @@ Other contributors:
.. _Philippe Muller: https://github.com/gpiozero/gpiozero/commits?author=pmuller
.. _Rick Ansell: https://github.com/gpiozero/gpiozero/commits?author=ricksbt
.. _Russel Winder: https://github.com/russel
.. _Ryan Walmsley: https://github.com/gpiozero/gpiozero/commits?author=ryanteck
.. _Schelto van Doorn: https://github.com/gpiozero/gpiozero/commits?author=goloplo
.. _Sofiia Kosovan: https://github.com/gpiozero/gpiozero/commits?author=SofiiaKosovan
.. _Steve Amor: https://github.com/gpiozero/gpiozero/commits?author=SteveAmor
Expand Down
11 changes: 8 additions & 3 deletions docs/api_boards.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. GPIO Zero: a library for controlling the Raspberry Pi's GPIO pins
.. Copyright (c) 2016-2019 Ben Nuttall <ben@bennuttall.com>
.. Copyright (c) 2016-2020 Ben Nuttall <ben@bennuttall.com>
.. Copyright (c) 2015-2019 Dave Jones <dave@waveform.org.uk>
.. Copyright (c) 2018 Claire Pollard <claire.r.pollard@gmail.com>
.. Copyright (c) 2016 Andrew Scheller <github@loowis.durge.org>
Expand Down Expand Up @@ -149,20 +149,25 @@ TrafficHat
:members:


TrafficpHat
-----------

.. autoclass:: TrafficpHat(\*, pwm=False, pin_factory=None)
:members:


JamHat
------

.. autoclass:: JamHat(\*, pwm=False, pin_factory=None)
:members:
:members:


Pibrella
--------

.. autoclass:: Pibrella(\*, pwm=False, pin_factory=None)
:members:
:members:


Robot
Expand Down
7 changes: 5 additions & 2 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. GPIO Zero: a library for controlling the Raspberry Pi's GPIO pins
.. Copyright (c) 2016-2019 Ben Nuttall <ben@bennuttall.com>
.. Copyright (c) 2016-2020 Ben Nuttall <ben@bennuttall.com>
.. Copyright (c) 2015-2019 Dave Jones <dave@waveform.org.uk>
.. Copyright (c) 2016 Andrew Scheller <github@loowis.durge.org>
..
Expand Down Expand Up @@ -39,7 +39,8 @@ Release 1.5.2 (unreleased)
==========================

* Added :class:`Pibrella` class (thanks to Carl Monk) (`#773`_, `#798`_)
* Allow :class:`Motor` passes :param:`pin_factory` to its child
* Added :class:`TrafficpHat` class (thanks to Ryan Walmsley) (`#845`_, `#846`_)
* Allow :class:`Motor` to pass :attr:`~Device.pin_factory` to its child
:class:`OutputDevice` objects (thanks to Yisrael Dov Lebow) (`#792`_)
* Small SPI exception fix (thanks to Maksim Levental) (`#762`_)
* Warn users when using default pin factory for Servos and Distance Sensors
Expand All @@ -52,6 +53,8 @@ Release 1.5.2 (unreleased)
.. _#773: https://github.com/gpiozero/gpiozero/issues/773
.. _#798: https://github.com/gpiozero/gpiozero/issues/798
.. _#792: https://github.com/gpiozero/gpiozero/issues/792
.. _#845: https://github.com/gpiozero/gpiozero/issues/845
.. _#846: https://github.com/gpiozero/gpiozero/issues/846
.. _#762: https://github.com/gpiozero/gpiozero/issues/762
.. _#780: https://github.com/gpiozero/gpiozero/issues/780
.. _#781: https://github.com/gpiozero/gpiozero/issues/781
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# GPIO Zero: a library for controlling the Raspberry Pi's GPIO pins
# Copyright (c) 2015-2019 Dave Jones <dave@waveform.org.uk>
# Copyright (c) 2019 Ben Nuttall <ben@bennuttall.com>
# Copyright (c) 2016 Thijs Triemstra <info@collab.nl>
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. GPIO Zero: a library for controlling the Raspberry Pi's GPIO pins
.. Copyright (c) 2016-2019 Dave Jones <dave@waveform.org.uk>
.. Copyright (c) 2016-2019 Ben Nuttall <ben@bennuttall.com>
.. Copyright (c) 2017 rgm <roland@securelink.com>
.. Copyright (c) 2016 Ben Nuttall <ben@bennuttall.com>
..
.. Redistribution and use in source and binary forms, with or without
.. modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion docs/development.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. GPIO Zero: a library for controlling the Raspberry Pi's GPIO pins
.. Copyright (c) 2018-2019 Ben Nuttall <ben@bennuttall.com>
.. Copyright (c) 2017-2019 Dave Jones <dave@waveform.org.uk>
.. Copyright (c) 2018 Steveis <SteveAmor@users.noreply.github.com>
.. Copyright (c) 2018 Ben Nuttall <ben@bennuttall.com>
..
.. Redistribution and use in source and binary forms, with or without
.. modification, are permitted provided that the following conditions are met:
Expand Down
1 change: 1 addition & 0 deletions docs/images/composite_device_hierarchy.dot
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ digraph classes {
TrafficHat->CompositeOutputDevice;
TrafficLights->LEDBoard;
TrafficLightsBuzzer->CompositeOutputDevice;
TrafficpHat->TrafficLights;
}
Binary file modified docs/images/composite_device_hierarchy.pdf
Binary file not shown.
Binary file modified docs/images/composite_device_hierarchy.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 23 additions & 11 deletions docs/images/composite_device_hierarchy.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/images/device_hierarchy.dot
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,5 @@ digraph classes {
TrafficHat->CompositeOutputDevice;
TrafficLights->LEDBoard;
TrafficLightsBuzzer->CompositeOutputDevice;
TrafficpHat->TrafficLights;
}
Binary file modified docs/images/device_hierarchy.pdf
Binary file not shown.
Binary file modified docs/images/device_hierarchy.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fd4ed45

Please sign in to comment.