mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Fix #181
Added source_delay property to SourceMixin which means it'll now appear everywhere. Default is 0.01 which is just enough to drop CPU usage while remaining responsive enough for the majority of purposes.
This commit is contained in:
@@ -31,6 +31,9 @@ class GPIOBadQueueLen(GPIODeviceError, ValueError):
|
||||
class GPIOBadSampleWait(GPIODeviceError, ValueError):
|
||||
"Error raised when a negative sampling wait period is specified"
|
||||
|
||||
class GPIOBadSourceDelay(GPIODeviceError, ValueError):
|
||||
"Error raised when a negative source delay is specified"
|
||||
|
||||
class InputDeviceError(GPIODeviceError):
|
||||
"Base class for errors specific to the InputDevice hierarchy"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user