Skip to content

Commit 67e91d8

Browse files
authored
Update st7789_280x240_simpletest.py
looks strange, but we will test...
1 parent d490ea8 commit 67e91d8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

examples/st7789_280x240_simpletest.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
# Display settings depending on the selected rotation
2424
# first value default setting for 1.69" with 0° and 180° rotation
2525
# second value default setting for 1.69" with 90° and 270° rotation
26-
width = 240 if rotation in (0, 180) else 280
27-
height = 280 if rotation in (0, 180) else 240
28-
color_bitmap_x = 240 if rotation in (0, 180) else 280
29-
color_bitmap_y = 280 if rotation in (0, 180) else 240
30-
inner_bitmap_x = 200 if rotation in (0, 180) else 240
31-
inner_bitmap_y = 240 if rotation in (0, 180) else 200
32-
scale = 2 if rotation in (0, 180) else 3
33-
x = 50 if rotation in (0, 180) else 37
34-
y = 140 if rotation in (0, 180) else 120
26+
width = 240 if rotation in {0, 180} else 280
27+
height = 280 if rotation in {0, 180} else 240
28+
color_bitmap_x = 240 if rotation in {0, 180} else 280
29+
color_bitmap_y = 280 if rotation in {0, 180} else 240
30+
inner_bitmap_x = 200 if rotation in {0, 180} else 240
31+
inner_bitmap_y = 240 if rotation in {0, 180} else 200
32+
scale = 2 if rotation in {0, 180} else 3
33+
x = 50 if rotation in {0, 180} else 37
34+
y = 140 if rotation in {0, 180} else 120
3535

3636
# Release any resources currently in use for the displays
3737
displayio.release_displays()

0 commit comments

Comments
 (0)