Update docs: add PWMLED and include value, values and source properties

This commit is contained in:
Ben Nuttall
2015-11-15 17:18:10 +00:00
parent 382d6e45fc
commit 4975e9c8fb
6 changed files with 168 additions and 47 deletions

View File

@@ -380,7 +380,9 @@ class Motor(SourceMixin, CompositeDevice):
"""
def __init__(self, forward=None, backward=None):
if not all([forward, backward]):
raise OutputDeviceError('forward and back pins must be provided')
raise OutputDeviceError(
'forward and backward pins must be provided'
)
super(Motor, self).__init__()
self._forward = PWMOutputDevice(forward)
self._backward = PWMOutputDevice(backward)