From 2f2af5d8d35c290eaad622b936b99dc5164306f8 Mon Sep 17 00:00:00 2001 From: RetiredWizard Date: Wed, 1 Nov 2023 23:03:16 -0400 Subject: [PATCH] Replace depreciated .show --- examples/gizmo_eink_simpletest.py | 2 +- examples/gizmo_simpletest.py | 2 +- examples/gizmo_tft_demo.py | 2 +- examples/gizmo_tft_thermometer.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/gizmo_eink_simpletest.py b/examples/gizmo_eink_simpletest.py index 040e870..9454497 100644 --- a/examples/gizmo_eink_simpletest.py +++ b/examples/gizmo_eink_simpletest.py @@ -26,7 +26,7 @@ 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 diff --git a/examples/gizmo_simpletest.py b/examples/gizmo_simpletest.py index d2edf0f..81aa96f 100644 --- a/examples/gizmo_simpletest.py +++ b/examples/gizmo_simpletest.py @@ -30,7 +30,7 @@ group.append(tile_grid) # Add the Group to the Display -display.show(group) +display.root_group = group # Draw pixels while True: diff --git a/examples/gizmo_tft_demo.py b/examples/gizmo_tft_demo.py index b0daca9..ab926c4 100644 --- a/examples/gizmo_tft_demo.py +++ b/examples/gizmo_tft_demo.py @@ -15,7 +15,7 @@ # 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) diff --git a/examples/gizmo_tft_thermometer.py b/examples/gizmo_tft_thermometer.py index 938964a..ac16571 100644 --- a/examples/gizmo_tft_thermometer.py +++ b/examples/gizmo_tft_thermometer.py @@ -79,7 +79,7 @@ def c_to_f(c_val): group.append(text_group) # Add the main Group to the Display - display.show(group) + display.root_group = group # Loop forever while True: