Replace depreciated .show

This commit is contained in:
RetiredWizard 2023-11-01 23:03:16 -04:00
parent 3cdf5940c3
commit 2f2af5d8d3
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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:

View file

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

View file

@ -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: