Merge pull request #246 from waveform80/pin-database

Add pins database
This commit is contained in:
Dave Jones
2016-04-05 00:51:27 +01:00
9 changed files with 775 additions and 26 deletions

View File

@@ -100,6 +100,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"