Skip to content

Commit 43ccd1d

Browse files
committed
Black fixing those files
1 parent 8ea81ff commit 43ccd1d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

adafruit_displayio_ssd1306.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,13 @@ def __init__(
8080
height = kwargs["width"]
8181
width = kwargs["height"]
8282
init_sequence[16] = height - 1 # patch mux ratio
83-
if height == 32 and width == 64: # FIX ME
83+
if height == 32 and width == 64: # FIX ME
8484
init_sequence[16] = 64 - 1 # FORCED for 64x32 because it fail with formula
8585
if (height == 32 or height == 16) and (width != 64):
8686
init_sequence[25] = 0x02 # patch com configuration
87-
col_offset = 0 if width == 128 else (128 - width) // 2 # https://github.com/micropython/micropython/pull/7411
87+
col_offset = (
88+
0 if width == 128 else (128 - width) // 2
89+
) # https://github.com/micropython/micropython/pull/7411
8890
super().__init__(
8991
bus,
9092
init_sequence,

examples/displayio_ssd1306_64x32_simpletest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141
splash.append(inner_sprite)
4242

4343
text = "Hello"
44-
text_area = label.Label( terminalio.FONT, text=text, color=0xFFFFFF, x=2, y=6)
44+
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFFFF, x=2, y=6)
4545
splash.append(text_area)
4646

4747
text = "World"
48-
text_area = label.Label( terminalio.FONT, text=text, color=0xFFFFFF, x=32, y=15)
48+
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFFFF, x=32, y=15)
4949
splash.append(text_area)
5050

5151
text = "9876543210"
52-
text_area = label.Label( terminalio.FONT, text=text, color=0xFFFFFF, x=2, y=24)
52+
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFFFF, x=2, y=24)
5353
splash.append(text_area)
5454

5555
while True:

0 commit comments

Comments
 (0)