Skip to content

Commit 478bc7c

Browse files
committed
Linted
1 parent 861264d commit 478bc7c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

examples/ssd1681_simpletest.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,15 @@
3939

4040
g = displayio.Group()
4141

42-
f = open("/display-ruler.bmp", "rb")
42+
with open("/display-ruler.bmp", "rb") as f:
43+
pic = displayio.OnDiskBitmap(f)
44+
t = displayio.TileGrid(pic, pixel_shader=displayio.ColorConverter())
45+
g.append(t)
4346

44-
pic = displayio.OnDiskBitmap(f)
45-
t = displayio.TileGrid(pic, pixel_shader=displayio.ColorConverter())
46-
g.append(t)
47+
display.show(g)
4748

48-
display.show(g)
49+
display.refresh()
4950

50-
display.refresh()
51+
print("refreshed")
5152

52-
print("refreshed")
53-
54-
time.sleep(120)
53+
time.sleep(120)

0 commit comments

Comments
 (0)