File tree Expand file tree Collapse file tree 2 files changed +14
-16
lines changed Expand file tree Collapse file tree 2 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 41
41
42
42
g = displayio .Group ()
43
43
44
- f = open ("/display-ruler.bmp" , "rb" )
44
+ with open ("/display-ruler.bmp" , "rb" ) as f :
45
+ pic = displayio .OnDiskBitmap (f )
46
+ t = displayio .TileGrid (pic , pixel_shader = displayio .ColorConverter ())
47
+ g .append (t )
45
48
46
- pic = displayio .OnDiskBitmap (f )
47
- t = displayio .TileGrid (pic , pixel_shader = displayio .ColorConverter ())
48
- g .append (t )
49
+ display .show (g )
49
50
50
- display .show ( g )
51
+ display .refresh ( )
51
52
52
- display .refresh ()
53
-
54
- time .sleep (120 )
53
+ time .sleep (120 )
Original file line number Diff line number Diff line change 34
34
35
35
g = displayio .Group ()
36
36
37
- f = open ("/display-ruler.bmp" , "rb" )
37
+ with open ("/display-ruler.bmp" , "rb" ) as f :
38
+ pic = displayio .OnDiskBitmap (f )
39
+ t = displayio .TileGrid (pic , pixel_shader = displayio .ColorConverter ())
40
+ g .append (t )
38
41
39
- pic = displayio .OnDiskBitmap (f )
40
- t = displayio .TileGrid (pic , pixel_shader = displayio .ColorConverter ())
41
- g .append (t )
42
+ display .show (g )
42
43
43
- display .show ( g )
44
+ display .refresh ( )
44
45
45
- display .refresh ()
46
-
47
- time .sleep (120 )
46
+ time .sleep (120 )
You can’t perform that action at this time.
0 commit comments