Skip to content

Commit a8f36b9

Browse files
author
Melissa LeBlanc-Williams
committed
Simplified 16-bit color handling
1 parent 35d8692 commit a8f36b9

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
@@ -28,7 +28,7 @@
2828
display.fill(WHITE)
2929

3030
def color555(rgb):
31-
return (rgb & 0x7C00) << 1 | (rgb & 0x03E0) << 1 | 0x20 | rgb & 0x001F
31+
return (rgb & 0x7FE0) << 1 | 0x20 | rgb & 0x001F
3232

3333
class BMP(object):
3434
def __init__(self, filename):

0 commit comments

Comments
 (0)