Files
python-gpiozero/gpiozero/__init__.py
Dave Jones 034b88b478 Add close method and context manager
Permit devices to be explicitly closed and used as context managers.
Also deal with cleanup properly at script end and ensure objects don't
step on the global cleanup function.
2015-09-29 19:10:01 +01:00

33 lines
484 B
Python

from __future__ import absolute_import
from .devices import (
GPIODeviceError,
GPIODevice,
)
from .input_devices import (
InputDeviceError,
InputDevice,
Button,
MotionSensor,
LightSensor,
TemperatureSensor,
)
from .output_devices import (
OutputDevice,
PWMOutputDevice,
LED,
Buzzer,
Motor,
Robot,
RGBLED,
)
from .boards import (
LEDBoard,
PiLiter,
TrafficLights,
PiTraffic,
FishDish,
TrafficHat,
)