Ensure PWMOutputDevice pin argument not mandatory, close #43

This commit is contained in:
Ben Nuttall
2015-10-05 12:09:35 +01:00
parent 82319ba672
commit fd3f66b832

View File

@@ -156,7 +156,7 @@ class PWMOutputDevice(DigitalOutputDevice):
""" """
Generic Output device configured for PWM (Pulse-Width Modulation). Generic Output device configured for PWM (Pulse-Width Modulation).
""" """
def __init__(self, pin): def __init__(self, pin=None):
super(PWMOutputDevice, self).__init__(pin) super(PWMOutputDevice, self).__init__(pin)
self._frequency = 100 self._frequency = 100
self._pwm = GPIO.PWM(self._pin, self._frequency) self._pwm = GPIO.PWM(self._pin, self._frequency)