Skip to content

Commit 3a60da7

Browse files
committed
Update BGR init sequence with MADCTL BGR bit 0x08
1 parent b763f12 commit 3a60da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_st7735r.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(self, bus, *, bgr=False, invert=False, **kwargs):
7474
init_sequence = _INIT_SEQUENCE
7575
if bgr:
7676
init_sequence += (
77-
b"\x36\x01\xC0" # _MADCTL Default rotation plus BGR encoding
77+
b"\x36\x01\xC8" # _MADCTL Default rotation plus BGR encoding
7878
)
7979
if invert:
8080
init_sequence += b"\x21\x00" # _INVON

0 commit comments

Comments
 (0)