@@ -81,6 +81,15 @@ class RGBLED:
81
81
import adafruit_rgbled
82
82
with adafruit_rgbled.RGBLED(board.D5, board.D6, board.D7, invert_pwm=True) as rgb_led:
83
83
rgb_led.color = (0, 255, 0)
84
+
85
+ :param Union["microcontroller.Pin", PWMOut, "PWMChannel"] red_pin:
86
+ The connection to the red LED.
87
+ :param Union["microcontroller.Pin", PWMOut, "PWMChannel"] green_pin:
88
+ The connection to the green LED.
89
+ :param Union["microcontroller.Pin", PWMOut, "PWMChannel"] blue_pin:
90
+ The connection to the blue LED.
91
+ :param bool invert_pwm: False if the RGB LED is common cathode,
92
+ True if the RGB LED is common anode. Defaults to False.
84
93
"""
85
94
86
95
def __init__ (
@@ -90,16 +99,6 @@ def __init__(
90
99
blue_pin : Union ["microcontroller.Pin" , PWMOut , "PWMChannel" ],
91
100
invert_pwm : bool = False ,
92
101
) -> None :
93
- """
94
- :param Union["microcontroller.Pin", PWMOut, "PWMChannel"] red_pin:
95
- The connection to the red LED.
96
- :param Union["microcontroller.Pin", PWMOut, "PWMChannel"] green_pin:
97
- The connection to the green LED.
98
- :param Union["microcontroller.Pin", PWMOut, "PWMChannel"] blue_pin:
99
- The connection to the blue LED.
100
- :param bool invert_pwm: False if the RGB LED is common cathode,
101
- True if the RGB LED is common anode. Defaults to False.
102
- """
103
102
self ._rgb_led_pins = [red_pin , green_pin , blue_pin ]
104
103
for pin , _ in enumerate (self ._rgb_led_pins ):
105
104
try :
0 commit comments