mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Fix #115
Adds when_held event hook to Button (via extension of the EventsMixin class). Also fixes some minor notes and activates codecov coverage tracking.
This commit is contained in:
@@ -16,6 +16,12 @@ class DeviceClosed(GPIOZeroError):
|
||||
class BadEventHandler(GPIOZeroError, ValueError):
|
||||
"Error raised when an event handler with an incompatible prototype is specified"
|
||||
|
||||
class BadWaitTime(GPIOZeroError, ValueError):
|
||||
"Error raised when an invalid wait time is specified"
|
||||
|
||||
class BadQueueLen(GPIOZeroError, ValueError):
|
||||
"Error raised when non-positive queue length is specified"
|
||||
|
||||
class CompositeDeviceError(GPIOZeroError):
|
||||
"Base class for errors specific to the CompositeDevice hierarchy"
|
||||
|
||||
@@ -49,15 +55,6 @@ class GPIOPinInUse(GPIODeviceError):
|
||||
class GPIOPinMissing(GPIODeviceError, ValueError):
|
||||
"Error raised when a pin number is not specified"
|
||||
|
||||
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 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