Skip to content

Commit d8bc0ab

Browse files
authored
LED() documentation has "pin" rather than "pwm" for second parameter
:param int pin: is in two places. The second place should be :param bool pwm:
1 parent a5f53ac commit d8bc0ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

picozero/picozero.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ def LED(pin, pwm=True, active_high=True, initial_value=False):
596596
:param int pin:
597597
The pin that the device is connected to.
598598
599-
:param int pin:
599+
:param bool pwm:
600600
If `pwm` is :data:`True` (the default), a :class:`PWMLED` will be
601601
returned. If `pwm` is :data:`False`, a :class:`DigitalLED` will be
602602
returned. A :class:`PWMLED` can control the brightness of the LED but

0 commit comments

Comments
 (0)