Skip to content

Commit e230589

Browse files
committed
black + lint
1 parent 66fdd9a commit e230589

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

examples/ssd1681_four_corners.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import board
1414
import busio
1515
import displayio
16-
import digitalio
1716
import terminalio
1817
import adafruit_ssd1681
1918

@@ -29,11 +28,7 @@
2928
epd_busy = board.EPD_BUSY
3029

3130
display_bus = displayio.FourWire(
32-
spi,
33-
command=epd_dc,
34-
chip_select=epd_cs,
35-
reset=epd_reset,
36-
baudrate=1000000
31+
spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000
3732
)
3833
display = adafruit_ssd1681.SSD1681(
3934
display_bus,
@@ -42,7 +37,7 @@
4237
busy_pin=epd_busy,
4338
highlight_color=0xFF0000,
4439
rotation=180,
45-
seconds_per_frame=15
40+
seconds_per_frame=15,
4641
)
4742

4843
# Make the display context
@@ -51,25 +46,30 @@
5146

5247
palette = displayio.Palette(2)
5348
palette[0] = 0x000000
54-
palette[1] = 0xffffff
49+
palette[1] = 0xFFFFFF
5550

56-
zero_glyph = terminalio.FONT.get_glyph(ord('0'))
51+
zero_glyph = terminalio.FONT.get_glyph(ord("0"))
5752

5853
padding = max(zero_glyph.height, zero_glyph.width) + 1
59-
label = displayio.TileGrid(terminalio.FONT.bitmap, pixel_shader=palette, tile_width=zero_glyph.width, tile_height=zero_glyph.height)
54+
label = displayio.TileGrid(
55+
terminalio.FONT.bitmap,
56+
pixel_shader=palette,
57+
tile_width=zero_glyph.width,
58+
tile_height=zero_glyph.height,
59+
)
6060
main_group.append(label)
6161

6262
# Number each of the 4 corners
6363
i = 0
6464
while True:
6565
if i % 2 == 0:
66-
label.x = padding
66+
label.x = padding
6767
else:
68-
label.x = display.width - padding - zero_glyph.width
68+
label.x = display.width - padding - zero_glyph.width
6969
if (i % 4) // 2 == 0:
70-
label.y = padding
70+
label.y = padding
7171
else:
72-
label.y = display.height - padding - zero_glyph.height
72+
label.y = display.height - padding - zero_glyph.height
7373

7474
label[0] = zero_glyph.tile_index + i
7575

0 commit comments

Comments
 (0)