From 90ba151d26f458a40f2360321198e8fd3814d088 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Fri, 27 May 2016 23:27:58 +0100 Subject: [PATCH] Doc fix: initial_value for PWMOutputDevice and PWMLED are float (not bool) --- gpiozero/output_devices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpiozero/output_devices.py b/gpiozero/output_devices.py index 470f10c..fd30a46 100644 --- a/gpiozero/output_devices.py +++ b/gpiozero/output_devices.py @@ -284,7 +284,7 @@ class PWMOutputDevice(OutputDevice): HIGH. If ``False``, the :meth:`on` method will set the GPIO to LOW (the :meth:`off` method always does the opposite). - :param bool initial_value: + :param float initial_value: If ``0`` (the default), the device's duty cycle will be 0 initially. Other values between 0 and 1 can be specified as an initial duty cycle. Note that ``None`` cannot be specified (unlike the parent class) as @@ -491,7 +491,7 @@ class PWMLED(PWMOutputDevice): HIGH. If ``False``, the :meth:`on` method will set the GPIO to LOW (the :meth:`off` method always does the opposite). - :param bool initial_value: + :param float initial_value: If ``0`` (the default), the LED will be off initially. Other values between 0 and 1 can be specified as an initial brightness for the LED. Note that ``None`` cannot be specified (unlike the parent class) as