add docstrings for constants, like neopixel.py, and remove duplicate BGR, make brightness property doc clearer

This commit is contained in:
Roy Hooper 2020-05-10 20:21:58 -04:00
parent 21310b27f8
commit 04854c340b

View file

@ -48,13 +48,19 @@ __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_DotStar.git"
START_HEADER_SIZE = 4
# Pixel color order constants
RBG = "PRBG"
"""Red Blue Green"""
RGB = "PRGB"
"""Red Green Blue"""
GRB = "PGRB"
"""Green Red Blue"""
GBR = "PGBR"
"""Green Blue Red"""
BRG = "PBRG"
"""Blue Red Green"""
BGR = "PBGR"
BGR = "PBGR"
"""Blue Green Red"""
class DotStar(_pixelbuf.PixelBuf):
@ -103,7 +109,7 @@ class DotStar(_pixelbuf.PixelBuf):
.. py:attribute:: brightness
Overall brightness of the dotstar (0 to 1.0)
Overall brightness of all dotstars (0 to 1.0)
"""
def __init__(