Replace depreciated .show
This commit is contained in:
parent
3cdf5940c3
commit
2f2af5d8d3
4 changed files with 4 additions and 4 deletions
|
|
@ -26,7 +26,7 @@ with open("/display-ruler.bmp", "rb") as file:
|
|||
display_group.append(sprite)
|
||||
|
||||
# Place the display group on the screen
|
||||
display.show(display_group)
|
||||
display.root_group = display_group
|
||||
|
||||
# Refresh the display to have it actually show the image
|
||||
# NOTE: Do not refresh eInk displays sooner than 180 seconds
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ group = displayio.Group()
|
|||
group.append(tile_grid)
|
||||
|
||||
# Add the Group to the Display
|
||||
display.show(group)
|
||||
display.root_group = group
|
||||
|
||||
# Draw pixels
|
||||
while True:
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ display = tft_gizmo.TFT_Gizmo()
|
|||
|
||||
# Make the display context
|
||||
splash = displayio.Group()
|
||||
display.show(splash)
|
||||
display.root_group = splash
|
||||
|
||||
color_bitmap = displayio.Bitmap(240, 240, 1)
|
||||
color_palette = displayio.Palette(1)
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ with open("/thermometer_background.bmp", "rb") as bitmap_file:
|
|||
group.append(text_group)
|
||||
|
||||
# Add the main Group to the Display
|
||||
display.show(group)
|
||||
display.root_group = group
|
||||
|
||||
# Loop forever
|
||||
while True:
|
||||
|
|
|
|||
Loading…
Reference in a new issue