We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1562e88 + 7aa578e commit 863951fCopy full SHA for 863951f
adafruit_bluefruit_connect/color_packet.py
@@ -34,7 +34,7 @@ def __init__(self, color):
34
or an int color value ``0xRRGGBB``
35
"""
36
if isinstance(color, int):
37
- self._color = tuple(color.to_bytes("BBB", "big"))
+ self._color = tuple(color.to_bytes(3, "big"))
38
elif len(color) == 3 and all(0 <= c <= 255 for c in color):
39
self._color = color
40
else:
0 commit comments