Skip to content

Commit 2b3fb83

Browse files
committed
ruff fixed.
1 parent 2304e3a commit 2b3fb83

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

adafruit_st7789.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,12 @@ class ST7789(BusDisplay):
7171
:param bool invert: (Optional) Invert the colors (default=True)
7272
"""
7373

74-
def __init__(
75-
self, bus: FourWire, *, bgr: bool = True, invert: bool = True, **kwargs: Any
76-
):
74+
def __init__(self, bus: FourWire, *, bgr: bool = True, invert: bool = True, **kwargs: Any):
7775
init_sequence = _INIT_SEQUENCE
7876
if bgr:
79-
init_sequence += (
80-
b"\x36\x01\xc0" # _MADCTL Default rotation plus BGR encoding
81-
)
77+
init_sequence += b"\x36\x01\xc0" # _MADCTL Default rotation plus BGR encoding
8278
else:
83-
init_sequence += (
84-
b"\x36\x01\xc8" # _MADCTL Default rotation plus RGB encoding
85-
)
79+
init_sequence += b"\x36\x01\xc8" # _MADCTL Default rotation plus RGB encoding
8680
if invert:
8781
init_sequence += b"\x21\x00" # _INVON
8882
super().__init__(bus, init_sequence, **kwargs)

0 commit comments

Comments
 (0)