Files
python-gpiozero/docs/api_boards.rst
Dave Jones c2a9392ea5 Make tests work reliably on the Pi
While the tests work well on a PC or Travis, the Pi (where I ought to be
running them!) has some issues with the timing tests. Need to relax the
tolerance of the "assert_states_and_times" method to 0.05 seconds
otherwise it periodically fails even on something reasonably quick like
a Pi 2 (less failures on a Pi 3 but still occasionally).

Also reduced default fps to 25; if the default timing occasionally fails
on a Pi 2 it's evidently too fast for a Pi 1 and shouldn't be the
default; 25 also doesn't look any different to me on a pulsing LED.

There's also a bunch of miscellaneous fixes in here; last minute typos
and chart re-gens for the 1.2 release.
2016-04-08 23:11:14 +01:00

109 lines
1.8 KiB
ReStructuredText

======================
Boards and Accessories
======================
.. currentmodule:: gpiozero
These additional interfaces are provided to group collections of components
together for ease of use, and as examples. They are composites made up of
components from the various :doc:`api_input` and :doc:`api_output` provided by
GPIO Zero. See those pages for more information on using components
individually.
.. note::
All GPIO pin numbers use Broadcom (BCM) numbering. See the :doc:`recipes`
page for more information.
LED Board
=========
.. autoclass:: LEDBoard(\*pins, pwm=False, active_high=True, initial_value=False, \*\*named_pins)
:inherited-members:
:members:
LED Bar Graph
=============
.. autoclass:: LEDBarGraph(\*pins, initial_value=0)
:inherited-members:
:members:
Traffic Lights
==============
.. autoclass:: TrafficLights
:inherited-members:
:members:
PiLITEr
=======
.. autoclass:: PiLiter
:inherited-members:
:members:
PiLITEr Bar Graph
=================
.. autoclass:: PiLiterBarGraph
:inherited-members:
:members:
PI-TRAFFIC
==========
.. autoclass:: PiTraffic
:inherited-members:
:members:
TrafficLightsBuzzer
===================
.. autoclass:: TrafficLightsBuzzer
:inherited-members:
:members:
Fish Dish
=========
.. autoclass:: FishDish
:inherited-members:
:members:
Traffic HAT
===========
.. autoclass:: TrafficHat
:inherited-members:
:members:
Robot
=====
.. autoclass:: Robot
:inherited-members:
:members:
Ryanteck MCB Robot
==================
.. autoclass:: RyanteckRobot
:inherited-members:
:members:
CamJam #3 Kit Robot
===================
.. autoclass:: CamJamKitRobot
:inherited-members:
:members:
Energenie
=========
.. autoclass:: Energenie
:inherited-members:
:members: