Skip to content

Commit b6a28f5

Browse files
committed
Lint + black
1 parent e3eee2c commit b6a28f5

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

examples/ssd1675_four_corners.py

Lines changed: 19 additions & 19 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_ssd1675
1918

@@ -29,19 +28,15 @@
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_ssd1675.SSD1675(
39-
display_bus,
40-
width=250,
41-
height=122,
42-
busy_pin=epd_busy,
43-
rotation=270,
44-
seconds_per_frame=10
34+
display_bus,
35+
width=250,
36+
height=122,
37+
busy_pin=epd_busy,
38+
rotation=270,
39+
seconds_per_frame=10,
4540
)
4641

4742
# Make the display context
@@ -50,25 +45,30 @@
5045

5146
palette = displayio.Palette(2)
5247
palette[0] = 0x000000
53-
palette[1] = 0xffffff
48+
palette[1] = 0xFFFFFF
5449

55-
zero_glyph = terminalio.FONT.get_glyph(ord('0'))
50+
zero_glyph = terminalio.FONT.get_glyph(ord("0"))
5651

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

6161
# Number each of the 4 corners
6262
i = 0
6363
while True:
6464
if i % 2 == 0:
65-
label.x = padding
65+
label.x = padding
6666
else:
67-
label.x = display.width - padding - zero_glyph.width
67+
label.x = display.width - padding - zero_glyph.width
6868
if (i % 4) // 2 == 0:
69-
label.y = padding
69+
label.y = padding
7070
else:
71-
label.y = display.height - padding - zero_glyph.height
71+
label.y = display.height - padding - zero_glyph.height
7272

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

0 commit comments

Comments
 (0)