From 2a7f9a0186af85a6893fb2f2f8d7e35bd81cdb0a Mon Sep 17 00:00:00 2001 From: Stephen Manz Date: Tue, 7 May 2024 17:13:05 -0600 Subject: [PATCH] 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: --- picozero/picozero.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picozero/picozero.py b/picozero/picozero.py index 5323602..720674b 100644 --- a/picozero/picozero.py +++ b/picozero/picozero.py @@ -596,7 +596,7 @@ def LED(pin, pwm=True, active_high=True, initial_value=False): :param int pin: The pin that the device is connected to. - :param int pin: + :param bool pwm: If `pwm` is :data:`True` (the default), a :class:`PWMLED` will be returned. If `pwm` is :data:`False`, a :class:`DigitalLED` will be returned. A :class:`PWMLED` can control the brightness of the LED but