|
23 | 23 | # Display settings depending on the selected rotation
|
24 | 24 | # first value default setting for 1.69" with 0° and 180° rotation
|
25 | 25 | # 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 |
35 | 35 |
|
36 | 36 | # Release any resources currently in use for the displays
|
37 | 37 | displayio.release_displays()
|
|
0 commit comments