Fix #114 - ultrasonic sensors

Implements support for the HC-SR04 ultrasonic sensor as an input device
class named DistanceSensor
This commit is contained in:
Dave Jones
2016-02-09 14:08:27 +00:00
parent 810bb67a6d
commit 83fb6ae8b4
8 changed files with 287 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ from .exc import (
GPIOPinInUse,
GPIOPinMissing,
GPIOBadQueueLen,
GPIOBadSampleWait,
InputDeviceError,
OutputDeviceError,
OutputDeviceBadValue,
@@ -48,6 +49,7 @@ from .input_devices import (
LineSensor,
MotionSensor,
LightSensor,
DistanceSensor,
AnalogInputDevice,
MCP3008,
MCP3004,