mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Add pins database
Related to @lurch's comments on #148, this PR contains a database of pins for each Pi revision, along with various other bits of miscellany (I might've gotten a bit carried away here...). Any corrections/extensions welcome!
This commit is contained in:
@@ -97,6 +97,15 @@ class PinPWMUnsupported(PinPWMError, AttributeError):
|
||||
class PinPWMFixedValue(PinPWMError, AttributeError):
|
||||
"Error raised when attempting to initialize PWM on an input pin"
|
||||
|
||||
class PinUnknownPi(PinError, RuntimeError):
|
||||
"Error raised when gpiozero doesn't recognize a revision of the Pi"
|
||||
|
||||
class PinMultiplePins(PinError, RuntimeError):
|
||||
"Error raised when multiple pins support the requested function"
|
||||
|
||||
class PinNoPins(PinError, RuntimeError):
|
||||
"Error raised when no pins support the requested function"
|
||||
|
||||
class GPIOZeroWarning(Warning):
|
||||
"Base class for all warnings in GPIO Zero"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user