Skip to content

Commit 0b05f81

Browse files
authored
Update st7789_280x240_simpletest.py
Run code check over it #pre-commit #black #ruff
1 parent 3d2c201 commit 0b05f81

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

examples/st7789_280x240_simpletest.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,17 @@
3939
tft_dc = board.D21
4040
backlight = board.D6
4141
display_bus = FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=board.D5)
42-
display = ST7789(display_bus, width=width, height=height, colstart=0, rowstart=20, rotation=rotation, backlight_pin=backlight, bgr=True, invert=True)
42+
display = ST7789(
43+
display_bus,
44+
width=width,
45+
height=height,
46+
colstart=0,
47+
rowstart=20,
48+
rotation=rotation,
49+
backlight_pin=backlight,
50+
bgr=True,
51+
invert=True,
52+
)
4353

4454
# set the backlight
4555
# minimum value 0.001 (0.000 would be off), maximum value 1.000

0 commit comments

Comments
 (0)