Rename to gpiozero and tidy up

This commit is contained in:
Ben Nuttall
2015-09-15 17:53:08 +01:00
parent 90aed0e925
commit abdc215175
3 changed files with 139 additions and 0 deletions

20
gpiozero/__init__.py Normal file
View File

@@ -0,0 +1,20 @@
from __future__ import absolute_import
from RPi import GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
from .input_devices import (
InputDeviceError,
InputDevice,
Button,
MotionSensor,
LightSensor,
TemperatureSensor,
)
from .output_devices import (
OutputDevice,
LED,
Buzzer,
Motor,
)