Skip to content

Latest commit

 

History

History
164 lines (115 loc) · 2.94 KB

api_boards.rst

File metadata and controls

164 lines (115 loc) · 2.94 KB

Boards and Accessories

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

LEDBoard(*pins, pwm=False, active_high=True, initial_value=False, **named_pins)

LEDBarGraph

LEDBarGraph(*pins, initial_value=0)

ButtonBoard

ButtonBoard(*pins, pull_up=True, bounce_time=None, hold_time=1, hold_repeat=False, **named_pins)

TrafficLights

TrafficLights

LedBorg

LedBorg

PiLITEr

PiLiter

PiLITEr Bar Graph

PiLiterBarGraph

PI-TRAFFIC

PiTraffic

TrafficLightsBuzzer

TrafficLightsBuzzer

Fish Dish

FishDish

Traffic HAT

TrafficHat

Robot

Robot

Ryanteck MCB Robot

RyanteckRobot

CamJam #3 Kit Robot

CamJamKitRobot

Energenie

Energenie

SnowPi

SnowPi

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:

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

LEDCollection

CompositeOutputDevice

CompositeOutputDevice(*args, _order=None, **kwargs)

CompositeDevice

CompositeDevice(*args, _order=None, **kwargs)