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 005d9cb + f6ed123 commit 2b972cdCopy full SHA for 2b972cd
adafruit_bitmapsaver.py
@@ -145,7 +145,7 @@ def _write_pixels(
145
result_buffer = bytearray(2048)
146
data = pixel_source.fill_row(y - 1, result_buffer)
147
for i in range(width):
148
- pixel565 = (data[i * 2] << 8) + data[i * 2 + 1]
+ pixel565 = (data[i * 2 + 1] << 8) + data[i * 2]
149
for b in _rgb565_to_bgr_tuple(pixel565):
150
row_buffer[buffer_index] = b & 0xFF
151
buffer_index += 1
0 commit comments