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 api_input
and 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 recipes
page for more information.
LEDBoard(*pins, pwm=False, active_high=True, initial_value=False, **named_pins)
LEDBarGraph(*pins, initial_value=0)
ButtonBoard(*pins, pull_up=True, bounce_time=None, hold_time=1, hold_repeat=False, **named_pins)
TrafficLights
LedBorg
PiLiter
PiLiterBarGraph
PiTraffic
TrafficLightsBuzzer
FishDish
TrafficHat
Robot
RyanteckRobot
CamJamKitRobot
Energenie
SnowPi
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:
For composite devices, the following chart shows which devices are composed of which other devices:
The following sections document these base classes for advanced users that wish to construct classes for their own devices.
LEDCollection
CompositeOutputDevice(*args, _order=None, **kwargs)
CompositeDevice(*args, _order=None, **kwargs)