Skip to content

Commit fc354d6

Browse files
author
brentru
committed
redo docstrings to show inclusion of pwmchannel, pwmout, microcontroller pin
1 parent 38abddb commit fc354d6

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

adafruit_rgbled.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,18 @@ class RGBLED:
4747
"""
4848
A RGB LED.
4949
50-
:param ~microcontroller.Pin red_pin: The red RGB LED pin to output PWM on.
51-
:param ~microcontroller.Pin green_pin: The green RGB LED pin to output PWM on.
52-
:param ~microcontroller.Pin blue_pin: The blue RGB LED pin to output PWM on.
50+
:param red_pin: The physical pin connected to a red LED anode.
51+
:type ~microcontroller.Pin: Microcontroller's red_pin.
52+
:type pulseio.PWMOut: PWMOut object associated with red_pin.
53+
:type PWMChannel: PCA9685 PWM channel associated with red_pin.
54+
:param green_pin: The physical pin connected to a green LED anode.
55+
:type ~microcontroller.Pin: Microcontroller's green_pin.
56+
:type pulseio.PWMOut: PWMOut object associated with green_pin.
57+
:type PWMChannel: PCA9685 PWM channel associated with green_pin.
58+
:param blue_pin: The physical pin connected to a blue LED anode.
59+
:type ~microcontroller.Pin: Microcontroller's blue_pin.
60+
:type pulseio.PWMOut: PWMOut object associated with blue_pin.
61+
:type PWMChannel: PCA9685 PWM channel associated with blue_pin.
5362
:param bool invert_pwm: False if the RGB LED is common cathode,
5463
true if the RGB LED is common anode.
5564

0 commit comments

Comments
 (0)