We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fbe9b6 commit ba22dbdCopy full SHA for ba22dbd
1 file changed
library/rpi_ws281x/rpi_ws281x.py
@@ -11,6 +11,10 @@ def __new__(self, r, g=None, b=None, w=None):
11
else:
12
if w is None:
13
w = 0
14
+ if g is None:
15
+ g = 0
16
+ if b is None:
17
+ b = 0
18
return int.__new__(self, (w << 24) | (r << 16) | (g << 8) | b)
19
20
@property
0 commit comments