Skip to content

Commit 973d4f3

Browse files
committed
Run pre-commit and fix line endings
1 parent 59bbfc2 commit 973d4f3

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

examples/st7789_170x320_1.9_simpletest.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
tft_dc = board.D6
2323
tft_rst = board.D9
2424

25-
display_bus = displayio.FourWire(
26-
spi, command=tft_dc, chip_select=tft_cs, reset=tft_rst
27-
)
25+
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=tft_rst)
2826

2927
display = ST7789(display_bus, width=320, height=170, colstart=34, rotation=90)
3028

@@ -39,20 +37,24 @@
3937
splash.append(bg_sprite)
4038

4139
# Draw a smaller inner rectangle
42-
inner_bitmap = displayio.Bitmap(display.width - (BORDER_WIDTH * 2), display.height - (BORDER_WIDTH * 2), 1)
40+
inner_bitmap = displayio.Bitmap(
41+
display.width - (BORDER_WIDTH * 2), display.height - (BORDER_WIDTH * 2), 1
42+
)
4343
inner_palette = displayio.Palette(1)
4444
inner_palette[0] = 0xAA0088 # Purple
45-
inner_sprite = displayio.TileGrid(inner_bitmap, pixel_shader=inner_palette, x=BORDER_WIDTH, y=BORDER_WIDTH)
45+
inner_sprite = displayio.TileGrid(
46+
inner_bitmap, pixel_shader=inner_palette, x=BORDER_WIDTH, y=BORDER_WIDTH
47+
)
4648
splash.append(inner_sprite)
4749

4850
# Draw a label
4951
text_area = label.Label(
50-
terminalio.FONT,
52+
terminalio.FONT,
5153
text="Hello World!",
5254
color=0xFFFF00,
5355
scale=TEXT_SCALE,
5456
anchor_point=(0.5, 0.5),
55-
anchored_position=(display.width // 2, display.height // 2)
57+
anchored_position=(display.width // 2, display.height // 2),
5658
)
5759
splash.append(text_area)
5860

examples/st7789_172x320_1.47_simpletest.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
tft_dc = board.D6
2323
tft_rst = board.D9
2424

25-
display_bus = displayio.FourWire(
26-
spi, command=tft_dc, chip_select=tft_cs, reset=tft_rst
27-
)
25+
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=tft_rst)
2826

2927
display = ST7789(display_bus, width=320, height=172, colstart=34, rotation=270)
3028

@@ -39,20 +37,24 @@
3937
splash.append(bg_sprite)
4038

4139
# Draw a smaller inner rectangle
42-
inner_bitmap = displayio.Bitmap(display.width - (BORDER_WIDTH * 2), display.height - (BORDER_WIDTH * 2), 1)
40+
inner_bitmap = displayio.Bitmap(
41+
display.width - (BORDER_WIDTH * 2), display.height - (BORDER_WIDTH * 2), 1
42+
)
4343
inner_palette = displayio.Palette(1)
4444
inner_palette[0] = 0xAA0088 # Purple
45-
inner_sprite = displayio.TileGrid(inner_bitmap, pixel_shader=inner_palette, x=BORDER_WIDTH, y=BORDER_WIDTH)
45+
inner_sprite = displayio.TileGrid(
46+
inner_bitmap, pixel_shader=inner_palette, x=BORDER_WIDTH, y=BORDER_WIDTH
47+
)
4648
splash.append(inner_sprite)
4749

4850
# Draw a label
4951
text_area = label.Label(
50-
terminalio.FONT,
52+
terminalio.FONT,
5153
text="Hello World!",
5254
color=0xFFFF00,
5355
scale=TEXT_SCALE,
5456
anchor_point=(0.5, 0.5),
55-
anchored_position=(display.width // 2, display.height // 2)
57+
anchored_position=(display.width // 2, display.height // 2),
5658
)
5759
splash.append(text_area)
5860

0 commit comments

Comments
 (0)