Doc fix: initial_value for PWMOutputDevice and PWMLED are float (not bool)

This commit is contained in:
Andrew Scheller
2016-05-27 23:27:58 +01:00
parent a13a7bb1c4
commit 90ba151d26

View File

@@ -284,7 +284,7 @@ class PWMOutputDevice(OutputDevice):
HIGH. If ``False``, the :meth:`on` method will set the GPIO to LOW (the HIGH. If ``False``, the :meth:`on` method will set the GPIO to LOW (the
:meth:`off` method always does the opposite). :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. 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. 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 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 HIGH. If ``False``, the :meth:`on` method will set the GPIO to LOW (the
:meth:`off` method always does the opposite). :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 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. 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 Note that ``None`` cannot be specified (unlike the parent class) as