Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Commit 37c1488

Browse files
committed
switch to uppercase because the lowercase D is bugging me
1 parent f6f7f91 commit 37c1488

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

pypixelbuf.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
import math
3434
import re
3535

36-
# pylint: disable=invalid-name
37-
3836
RGB = "RGB"
3937
RBG = "RBG"
4038
GRB = "GRB"
@@ -47,12 +45,12 @@
4745
GBRW = "GBRW"
4846
BRGW = "BRGW"
4947
BGRW = "BGRW"
50-
RGBd = "RGBd"
51-
RBGd = "RBGd"
52-
GRBd = "GRBd"
53-
GBRd = "GBRd"
54-
BRGd = "BRGd"
55-
BGRd = "BGRd"
48+
RGBD = "RGBD"
49+
RBGD = "RBGD"
50+
GRBD = "GRBD"
51+
GBRD = "GBRD"
52+
BRGD = "BRGD"
53+
BGRD = "BGRD"
5654

5755
DOTSTAR_LED_START_FULL_BRIGHT = 0xFF
5856
DOTSTAR_LED_START = 0b11100000 # Three "1" bits, followed by 5 brightness bits
@@ -139,7 +137,7 @@ def parse_byteorder(byteorder):
139137
G - Green
140138
B - Blue
141139
W - White
142-
d - Dotstar luminositry
140+
D - Dotstar luminositry
143141
144142
:param: ~str bpp: bpp string.
145143
:return: ~tuple: bpp, byteorder, has_white, dotstar_mode
@@ -161,7 +159,7 @@ def parse_byteorder(byteorder):
161159
w = byteorder.index("W")
162160
byteorder = (r, g, b, w)
163161
elif 'd' in byteorder:
164-
lum = byteorder.index("d")
162+
lum = byteorder.index("D")
165163
byteorder = (r, g, b, lum)
166164
else:
167165
byteorder = (r, g, b)

0 commit comments

Comments
 (0)