Correct PiLiterBarGraph init params

This commit is contained in:
Ben Nuttall
2016-05-27 22:05:09 +01:00
parent a116e9ded0
commit a13a7bb1c4

View File

@@ -510,26 +510,19 @@ class PiLiterBarGraph(LEDBarGraph):
:param bool pwm:
If ``True``, construct :class:`PWMLED` instances for each pin. If
``False`` (the default), construct regular :class:`LED` instances. This
parameter can only be specified as a keyword parameter.
:param bool active_high:
If ``True`` (the default), the :meth:`on` method will set all the
associated pins to HIGH. If ``False``, the :meth:`on` method will set
all pins to LOW (the :meth:`off` method always does the opposite). This
parameter can only be specified as a keyword parameter.
``False`` (the default), construct regular :class:`LED` instances.
:param float initial_value:
The initial :attr:`value` of the graph given as a float between -1 and
+1. Defaults to 0.0. This parameter can only be specified as a keyword
parameter.
+1.
.. _Ciseco Pi-LITEr: http://shop.ciseco.co.uk/pi-liter-8-led-strip-for-the-raspberry-pi/
"""
def __init__(self, **kwargs):
def __init__(self, pwm=False, initial_value=0.0):
pins = (4, 17, 27, 18, 22, 23, 24, 25)
super(PiLiterBarGraph, self).__init__(*pins, **kwargs)
super(PiLiterBarGraph, self).__init__(*pins, pwm=pwm,
initial_value=initial_value)
class TrafficLights(LEDBoard):