Add docstrings, close #26

This commit is contained in:
Ben Nuttall
2015-09-24 11:39:50 +01:00
parent c619aab630
commit cfed671972
5 changed files with 291 additions and 19 deletions

View File

@@ -10,6 +10,9 @@ class GPIODeviceError(Exception):
class GPIODevice(object):
"""
Generic GPIO Device.
"""
def __init__(self, pin=None):
if pin is None:
raise GPIODeviceError('No GPIO pin number given')