Skip to content

Commit 86d3cb9

Browse files
committed
linting
1 parent 7ae3ba8 commit 86d3cb9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/ssd1306_pillow_demo.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,17 @@
4242
draw.rectangle((0, 0, oled.width, oled.height), outline=255, fill=255)
4343

4444
# Draw a smaller inner rectangle
45-
draw.rectangle((BORDER, BORDER, oled.width - BORDER - 1, oled.height - BORDER - 1), outline=0, fill=0)
45+
draw.rectangle((BORDER, BORDER, oled.width - BORDER - 1, oled.height - BORDER - 1),
46+
outline=0, fill=0)
4647

4748
# Load default font.
4849
font = ImageFont.load_default()
4950

5051
# Draw Some Text
5152
text = "Hello World!"
5253
(font_width, font_height) = font.getsize(text)
53-
draw.text((oled.width//2 - font_width//2, oled.height//2 - font_height//2), text, font=font, fill=255)
54+
draw.text((oled.width//2 - font_width//2, oled.height//2 - font_height//2),
55+
text, font=font, fill=255)
5456

5557
# Display image
5658
oled.image(image)

0 commit comments

Comments
 (0)