Skip to content

Commit 04854c3

Browse files
committed
add docstrings for constants, like neopixel.py, and remove duplicate BGR, make brightness property doc clearer
1 parent 21310b2 commit 04854c3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

adafruit_dotstar.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,19 @@
4848

4949
START_HEADER_SIZE = 4
5050

51+
# Pixel color order constants
5152
RBG = "PRBG"
53+
"""Red Blue Green"""
5254
RGB = "PRGB"
55+
"""Red Green Blue"""
5356
GRB = "PGRB"
57+
"""Green Red Blue"""
5458
GBR = "PGBR"
59+
"""Green Blue Red"""
5560
BRG = "PBRG"
61+
"""Blue Red Green"""
5662
BGR = "PBGR"
57-
BGR = "PBGR"
63+
"""Blue Green Red"""
5864

5965

6066
class DotStar(_pixelbuf.PixelBuf):
@@ -103,7 +109,7 @@ class DotStar(_pixelbuf.PixelBuf):
103109
104110
.. py:attribute:: brightness
105111
106-
Overall brightness of the dotstar (0 to 1.0)
112+
Overall brightness of all dotstars (0 to 1.0)
107113
"""
108114

109115
def __init__(

0 commit comments

Comments
 (0)