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

@@ -28,6 +28,9 @@ class GPIOPinMissing(GPIODeviceError, ValueError):
class GPIOBadQueueLen(GPIODeviceError, ValueError):
"Error raised when non-positive queue length is specified"
class GPIOBadSampleWait(GPIODeviceError, ValueError):
"Error raised when a negative sampling wait period is specified"
class InputDeviceError(GPIODeviceError):
"Base class for errors specific to the InputDevice hierarchy"