mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Add docstrings, close #26
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user