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.
1 parent 3befa99 commit 3db43b3Copy full SHA for 3db43b3
adafruit_framebuf.py
@@ -134,8 +134,8 @@ class RGB565Format:
134
135
@staticmethod
136
def color_to_rgb565(color):
137
- """Convert a color in either tuple or 24 bit integer form to RGB565, and return as two bytes
138
- """
+ """Convert a color in either tuple or 24 bit integer form to RGB565,
+ and return as two bytes"""
139
if isinstance(color, tuple):
140
hibyte = (color[0] & 0xF8) | (color[1] >> 5)
141
lobyte = ((color[1] << 5) & 0xE0) | (color[2] >> 3)
0 commit comments