Linted
This commit is contained in:
parent
0282431765
commit
3146761d5b
1 changed files with 8 additions and 9 deletions
|
|
@ -41,16 +41,15 @@ display = adafruit_ssd1680.SSD1680(
|
|||
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue