Skip to content

Commit

Permalink
Linted
Browse files Browse the repository at this point in the history
  • Loading branch information
evaherrada committed May 19, 2021
1 parent 6abc1e0 commit d438693
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
17 changes: 8 additions & 9 deletions examples/ssd1675_2.13_monochrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,15 @@

g = displayio.Group()

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

pic = displayio.OnDiskBitmap(f)
t = displayio.TileGrid(pic, pixel_shader=displayio.ColorConverter())
g.append(t)
display.show(g)

display.show(g)
display.refresh()

display.refresh()
print("refreshed")

print("refreshed")

time.sleep(120)
time.sleep(120)
17 changes: 8 additions & 9 deletions examples/ssd1675_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,15 @@

g = displayio.Group()

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

pic = displayio.OnDiskBitmap(f)
t = displayio.TileGrid(pic, pixel_shader=displayio.ColorConverter())
g.append(t)
display.show(g)

display.show(g)
display.refresh()

display.refresh()
print("refreshed")

print("refreshed")

time.sleep(120)
time.sleep(120)

0 comments on commit d438693

Please sign in to comment.