Skip to content

Commit 3146761

Browse files
committed
Linted
1 parent 0282431 commit 3146761

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

examples/ssd1680_simpletest.py

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

4242
g = displayio.Group()
4343

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)
4548

46-
pic = displayio.OnDiskBitmap(f)
47-
t = displayio.TileGrid(pic, pixel_shader=displayio.ColorConverter())
48-
g.append(t)
49+
display.show(g)
4950

50-
display.show(g)
51+
display.refresh()
5152

52-
display.refresh()
53+
print("refreshed")
5354

54-
print("refreshed")
55-
56-
time.sleep(120)
55+
time.sleep(120)

0 commit comments

Comments
 (0)