Skip to content

Commit f6ed123

Browse files
committed
Flip byteorder
1 parent 005d9cb commit f6ed123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_bitmapsaver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def _write_pixels(
145145
result_buffer = bytearray(2048)
146146
data = pixel_source.fill_row(y - 1, result_buffer)
147147
for i in range(width):
148-
pixel565 = (data[i * 2] << 8) + data[i * 2 + 1]
148+
pixel565 = (data[i * 2 + 1] << 8) + data[i * 2]
149149
for b in _rgb565_to_bgr_tuple(pixel565):
150150
row_buffer[buffer_index] = b & 0xFF
151151
buffer_index += 1

0 commit comments

Comments
 (0)