Files
python-gpiozero/docs/api_boards.rst
Dave Jones 759a6a58e6 Fix #140, fix #69, fix #185
This PR adds a software SPI implementation. Firstly this removes the
absolute necessity for spidev (#140), which also means when it's not
present things still work (effectively fixes #185), and also enables any
four pins to be used for SPI devices (which don't require the hardware
implementation).

The software implementation is simplistic but still supports clock
polarity and phase, select-high, and variable bits per word. However it
doesn't allow precise speeds to be implemented because it just wibbles
the clock as fast as it can (which being pure Python isn't actually that
fast).

Finally, because this PR involves creating a framework for "shared"
devices (like SPI devices with multiple channels), it made sense to bung
Energenie (#69) in as wells as this is a really simple shared device.
2016-04-01 12:57:17 +01:00

102 lines
1.7 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)
: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: