From a13a7bb1c4d987ec284074ee05069cd6aeff0d75 Mon Sep 17 00:00:00 2001 From: Ben Nuttall Date: Fri, 27 May 2016 22:05:09 +0100 Subject: [PATCH] Correct PiLiterBarGraph init params --- gpiozero/boards.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/gpiozero/boards.py b/gpiozero/boards.py index 67370b9..192fda3 100644 --- a/gpiozero/boards.py +++ b/gpiozero/boards.py @@ -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):