mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Fix #114 - ultrasonic sensors
Implements support for the HC-SR04 ultrasonic sensor as an input device class named DistanceSensor
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user