mirror of
				https://github.com/KevinMidboe/python-gpiozero.git
				synced 2025-10-29 17:50:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			151 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
			
		
		
	
	
			151 lines
		
	
	
		
			2.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.
 | |
| 
 | |
| LEDBoard
 | |
| ========
 | |
| 
 | |
| .. autoclass:: LEDBoard(\*pins, pwm=False, active_high=True, initial_value=False, \*\*named_pins)
 | |
|     :inherited-members:
 | |
|     :members:
 | |
| 
 | |
| LEDBarGraph
 | |
| ===========
 | |
| 
 | |
| .. autoclass:: LEDBarGraph(\*pins, initial_value=0)
 | |
|     :inherited-members:
 | |
|     :members:
 | |
| 
 | |
| TrafficLights
 | |
| =============
 | |
| 
 | |
| .. 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:
 | |
| 
 | |
| SnowPi
 | |
| ======
 | |
| 
 | |
| .. autoclass:: SnowPi
 | |
|     :inherited-members:
 | |
|     :members:
 | |
| 
 | |
| Base Classes
 | |
| ============
 | |
| 
 | |
| The classes in the sections above are derived from a series of base classes,
 | |
| some of which are effectively abstract. The classes form the (partial)
 | |
| hierarchy displayed in the graph below:
 | |
| 
 | |
| .. image:: images/composite_device_hierarchy.*
 | |
| 
 | |
| For composite devices, the following chart shows which devices are composed of
 | |
| which other devices:
 | |
| 
 | |
| .. image:: images/composed_devices.*
 | |
| 
 | |
| The following sections document these base classes for advanced users that wish
 | |
| to construct classes for their own devices.
 | |
| 
 | |
| LEDCollection
 | |
| =============
 | |
| 
 | |
| .. autoclass:: LEDCollection
 | |
|     :members:
 | |
| 
 | |
| CompositeOutputDevice
 | |
| =====================
 | |
| 
 | |
| .. autoclass:: CompositeOutputDevice(\*args, _order=None, \*\*kwargs)
 | |
|     :members:
 | |
| 
 | |
| CompositeDevice
 | |
| ===============
 | |
| 
 | |
| .. autoclass:: CompositeDevice(\*args, _order=None, \*\*kwargs)
 | |
|     :members:
 | |
| 
 |