mirror of
				https://github.com/KevinMidboe/python-gpiozero.git
				synced 2025-10-29 17:50:37 +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:
		| @@ -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" | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user