Skip to content

Commit a2423d5

Browse files
committed
Lint + black
1 parent 96dbaf1 commit a2423d5

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

adafruit_ssd1680.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,3 @@ def __init__(self, bus: displayio.Fourwire, **kwargs) -> None:
101101
always_toggle_chip_select=False,
102102
address_little_endian=True
103103
)
104-

examples/ssd1680_four_corners.py

Lines changed: 21 additions & 21 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_ssd1680
1918

@@ -29,21 +28,17 @@
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_ssd1680.SSD1680(
39-
display_bus,
40-
colstart=8,
41-
width=250,
42-
height=122,
43-
busy_pin=epd_busy,
44-
highlight_color=0xFFFFFF,
45-
rotation=270,
46-
seconds_per_frame=10
34+
display_bus,
35+
colstart=8,
36+
width=250,
37+
height=122,
38+
busy_pin=epd_busy,
39+
highlight_color=0xFFFFFF,
40+
rotation=270,
41+
seconds_per_frame=10,
4742
)
4843

4944
# Make the display context
@@ -52,25 +47,30 @@
5247

5348
palette = displayio.Palette(2)
5449
palette[0] = 0x000000
55-
palette[1] = 0xffffff
50+
palette[1] = 0xFFFFFF
5651

57-
zero_glyph = terminalio.FONT.get_glyph(ord('0'))
52+
zero_glyph = terminalio.FONT.get_glyph(ord("0"))
5853

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

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

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

0 commit comments

Comments
 (0)