This repository was archived by the owner on Apr 20, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 33
33
import math
34
34
import re
35
35
36
- # pylint: disable=invalid-name
37
-
38
36
RGB = "RGB"
39
37
RBG = "RBG"
40
38
GRB = "GRB"
47
45
GBRW = "GBRW"
48
46
BRGW = "BRGW"
49
47
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 "
56
54
57
55
DOTSTAR_LED_START_FULL_BRIGHT = 0xFF
58
56
DOTSTAR_LED_START = 0b11100000 # Three "1" bits, followed by 5 brightness bits
@@ -139,7 +137,7 @@ def parse_byteorder(byteorder):
139
137
G - Green
140
138
B - Blue
141
139
W - White
142
- d - Dotstar luminositry
140
+ D - Dotstar luminositry
143
141
144
142
:param: ~str bpp: bpp string.
145
143
:return: ~tuple: bpp, byteorder, has_white, dotstar_mode
@@ -161,7 +159,7 @@ def parse_byteorder(byteorder):
161
159
w = byteorder .index ("W" )
162
160
byteorder = (r , g , b , w )
163
161
elif 'd' in byteorder :
164
- lum = byteorder .index ("d " )
162
+ lum = byteorder .index ("D " )
165
163
byteorder = (r , g , b , lum )
166
164
else :
167
165
byteorder = (r , g , b )
You can’t perform that action at this time.
0 commit comments