Skip to content

Commit aa10162

Browse files
committed
Linted
1 parent c7c36eb commit aa10162

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

examples/ssd1608_simpletest.py

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

3434
g = displayio.Group()
3535

36-
f = open("/display-ruler.bmp", "rb")
36+
with open("/display-ruler.bmp", "rb") as f:
37+
pic = displayio.OnDiskBitmap(f)
38+
t = displayio.TileGrid(pic, pixel_shader=displayio.ColorConverter())
39+
g.append(t)
3740

38-
pic = displayio.OnDiskBitmap(f)
39-
t = displayio.TileGrid(pic, pixel_shader=displayio.ColorConverter())
40-
g.append(t)
41+
display.show(g)
4142

42-
display.show(g)
43+
display.refresh()
4344

44-
display.refresh()
45+
print("refreshed")
4546

46-
print("refreshed")
47-
48-
time.sleep(120)
47+
time.sleep(120)

0 commit comments

Comments
 (0)