Skip to content

Commit 90ba151

Browse files
committed
Doc fix: initial_value for PWMOutputDevice and PWMLED are float (not bool)
1 parent a13a7bb commit 90ba151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gpiozero/output_devices.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class PWMOutputDevice(OutputDevice):
284284
HIGH. If ``False``, the :meth:`on` method will set the GPIO to LOW (the
285285
:meth:`off` method always does the opposite).
286286
287-
:param bool initial_value:
287+
:param float initial_value:
288288
If ``0`` (the default), the device's duty cycle will be 0 initially.
289289
Other values between 0 and 1 can be specified as an initial duty cycle.
290290
Note that ``None`` cannot be specified (unlike the parent class) as
@@ -491,7 +491,7 @@ class PWMLED(PWMOutputDevice):
491491
HIGH. If ``False``, the :meth:`on` method will set the GPIO to LOW (the
492492
:meth:`off` method always does the opposite).
493493
494-
:param bool initial_value:
494+
:param float initial_value:
495495
If ``0`` (the default), the LED will be off initially. Other values
496496
between 0 and 1 can be specified as an initial brightness for the LED.
497497
Note that ``None`` cannot be specified (unlike the parent class) as

0 commit comments

Comments
 (0)