Skip to content

Commit 498676b

Browse files
author
Melissa LeBlanc-Williams
committed
Fixed color in BMP example
1 parent f0246bd commit 498676b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ra8875_bmptest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def draw(self, disp, x=0, y=0):
7474
if self.bpp == 16:
7575
color = line_data[i] << 8 | line_data[i+1]
7676
if self.bpp == 24:
77-
color = color565(line_data[i], line_data[i+1], line_data[i+2])
77+
color = color565(line_data[i+2], line_data[i+1], line_data[i])
7878
current_line_data = current_line_data + struct.pack(">H", color)
7979
disp.setxy(x, self.height - line + y)
8080
disp.push_pixels(current_line_data)

0 commit comments

Comments
 (0)