From d8bc0ab5af50f59c7e8ba5224b089bc430a0f42a Mon Sep 17 00:00:00 2001 From: Stephen Manz Date: Tue, 7 May 2024 17:44:42 -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 19e3221..e03ed01 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