mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
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.
33 lines
484 B
Python
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,
|
|
)
|
|
|