diff --git a/Raspberry_Pi_Azure_IoT_Hub_Dashboard/azure_pi/code.py b/Raspberry_Pi_Azure_IoT_Hub_Dashboard/azure_pi/code.py index da5a79b67..d75cf60b7 100644 --- a/Raspberry_Pi_Azure_IoT_Hub_Dashboard/azure_pi/code.py +++ b/Raspberry_Pi_Azure_IoT_Hub_Dashboard/azure_pi/code.py @@ -102,7 +102,7 @@ main_group = displayio.Group() for x in display_objects: main_group.append(x) -display.show(main_group) +display.root_group = main_group # convert UTC time to local timezone def utc_to_local(utc_dt): diff --git a/Raspberry_Pi_Azure_IoT_Hub_Dashboard/featherTft_bme680/code.py b/Raspberry_Pi_Azure_IoT_Hub_Dashboard/featherTft_bme680/code.py index 19410a04b..ceee73fa3 100644 --- a/Raspberry_Pi_Azure_IoT_Hub_Dashboard/featherTft_bme680/code.py +++ b/Raspberry_Pi_Azure_IoT_Hub_Dashboard/featherTft_bme680/code.py @@ -122,7 +122,7 @@ group.append(temp_text) group.append(humid_text) group.append(press_text) group.append(time_text) -display.show(group) +display.root_group = group # clock to count down to sending data to Azure azure_clock = 500 diff --git a/Say_Their_Names_LEDMatrix/code.py b/Say_Their_Names_LEDMatrix/code.py index 644cff3fc..7bdf089bb 100644 --- a/Say_Their_Names_LEDMatrix/code.py +++ b/Say_Their_Names_LEDMatrix/code.py @@ -161,7 +161,7 @@ for line in blm_font: g.append(line) for line in names_font: g.append(line) -display.show(g) +display.root_group = g while True: diff --git a/Smart_Alarm_Clock/code.py b/Smart_Alarm_Clock/code.py index ea1923bcc..c7fe68600 100644 --- a/Smart_Alarm_Clock/code.py +++ b/Smart_Alarm_Clock/code.py @@ -224,7 +224,7 @@ framebuffer = sharpdisplay.SharpMemoryFramebuffer(bus, chip_select_pin, 400, 240 display = framebufferio.FramebufferDisplay(framebuffer) splash = displayio.Group() -display.show(splash) +display.root_group = splash # Set up PWM LEDs diff --git a/TFT_Gizmo_Candy_Hearts/candy_heart_ble/code.py b/TFT_Gizmo_Candy_Hearts/candy_heart_ble/code.py index 681cb6598..fcae3923c 100755 --- a/TFT_Gizmo_Candy_Hearts/candy_heart_ble/code.py +++ b/TFT_Gizmo_Candy_Hearts/candy_heart_ble/code.py @@ -54,7 +54,7 @@ group = displayio.Group() group.append(heart) group.append(line1) group.append(line2) -display.show(group) +display.root_group = group def update_heart(message, heart_color): # turn off auto refresh while we change some things diff --git a/TFT_Gizmo_Candy_Hearts/candy_hearts/code.py b/TFT_Gizmo_Candy_Hearts/candy_hearts/code.py index 709856afc..6ebc776fd 100755 --- a/TFT_Gizmo_Candy_Hearts/candy_hearts/code.py +++ b/TFT_Gizmo_Candy_Hearts/candy_hearts/code.py @@ -56,7 +56,7 @@ group = displayio.Group() group.append(heart) group.append(line1) group.append(line2) -display.show(group) +display.root_group = group while True: # turn off auto refresh while we change some things diff --git a/TFT_Gizmo_Candy_Hearts/clue_heart_ble/code.py b/TFT_Gizmo_Candy_Hearts/clue_heart_ble/code.py index 54f621546..a6474089f 100755 --- a/TFT_Gizmo_Candy_Hearts/clue_heart_ble/code.py +++ b/TFT_Gizmo_Candy_Hearts/clue_heart_ble/code.py @@ -54,7 +54,7 @@ group = displayio.Group() group.append(heart) group.append(line1) group.append(line2) -display.show(group) +display.root_group = group def update_heart(message, heart_color): # turn off auto refresh while we change some things diff --git a/TFT_Gizmo_Candy_Hearts/clue_hearts/code.py b/TFT_Gizmo_Candy_Hearts/clue_hearts/code.py index 96274d57b..567378c77 100755 --- a/TFT_Gizmo_Candy_Hearts/clue_hearts/code.py +++ b/TFT_Gizmo_Candy_Hearts/clue_hearts/code.py @@ -56,7 +56,7 @@ group = displayio.Group() group.append(heart) group.append(line1) group.append(line2) -display.show(group) +display.root_group = group while True: # turn off auto refresh while we change some things diff --git a/TFT_Gizmo_Dreidel/code.py b/TFT_Gizmo_Dreidel/code.py index 063193831..5da4e7b1e 100644 --- a/TFT_Gizmo_Dreidel/code.py +++ b/TFT_Gizmo_Dreidel/code.py @@ -33,7 +33,7 @@ melody_tempo = 0.02 # setup TFT Gizmo and main display group (splash) display = tft_gizmo.TFT_Gizmo() splash = displayio.Group() -display.show(splash) +display.root_group = splash # load dreidel background image dreidel_bmp, dreidel_pal = adafruit_imageload.load("/dreidel_background.bmp", diff --git a/TFT_Gizmo_Snowglobe/snowglobe_fancy/code.py b/TFT_Gizmo_Snowglobe/snowglobe_fancy/code.py index 4a1f7a353..6431fd94a 100644 --- a/TFT_Gizmo_Snowglobe/snowglobe_fancy/code.py +++ b/TFT_Gizmo_Snowglobe/snowglobe_fancy/code.py @@ -80,7 +80,7 @@ splash = displayio.Group() splash.append(background) splash.append(flakes) splash.append(snow) -display.show(splash) +display.root_group = splash def clear_the_snow(): #pylint: disable=global-statement, redefined-outer-name diff --git a/TFT_Gizmo_Snowglobe/snowglobe_simple/code.py b/TFT_Gizmo_Snowglobe/snowglobe_simple/code.py index a538687ba..589ef4dd4 100644 --- a/TFT_Gizmo_Snowglobe/snowglobe_simple/code.py +++ b/TFT_Gizmo_Snowglobe/snowglobe_simple/code.py @@ -72,7 +72,7 @@ splash = displayio.Group() splash.append(background) splash.append(flakes) splash.append(snow) -display.show(splash) +display.root_group = splash def clear_the_snow(): #pylint: disable=global-statement, redefined-outer-name diff --git a/Tilemap_Game_With_CircuitPython/basic_movement/code.py b/Tilemap_Game_With_CircuitPython/basic_movement/code.py index 2a1604ee2..ce7b4b512 100644 --- a/Tilemap_Game_With_CircuitPython/basic_movement/code.py +++ b/Tilemap_Game_With_CircuitPython/basic_movement/code.py @@ -79,7 +79,7 @@ sprite.x = 16 * player_loc["x"] sprite.y = 16 * player_loc["y"] # Add the Group to the Display -display.show(group) +display.root_group = group prev_btn_vals = ugame.buttons.get_pressed() diff --git a/Tilemap_Game_With_CircuitPython/basic_movement_transparent_sprite/code.py b/Tilemap_Game_With_CircuitPython/basic_movement_transparent_sprite/code.py index 00696fafc..e607f2f7d 100644 --- a/Tilemap_Game_With_CircuitPython/basic_movement_transparent_sprite/code.py +++ b/Tilemap_Game_With_CircuitPython/basic_movement_transparent_sprite/code.py @@ -79,7 +79,7 @@ sprite.x = 16 * player_loc["x"] sprite.y = 16 * player_loc["y"] # Add the Group to the Display -display.show(group) +display.root_group = group prev_btn_vals = ugame.buttons.get_pressed() diff --git a/Tilemap_Game_With_CircuitPython/basic_rendering/code.py b/Tilemap_Game_With_CircuitPython/basic_rendering/code.py index 2e010ce74..015a70cf0 100644 --- a/Tilemap_Game_With_CircuitPython/basic_rendering/code.py +++ b/Tilemap_Game_With_CircuitPython/basic_rendering/code.py @@ -76,6 +76,6 @@ sprite.x = 16 * 4 sprite.y = 16 * 3 # Add the Group to the Display -display.show(group) +display.root_group = group while True: pass diff --git a/Tilemap_Game_With_CircuitPython/code.py b/Tilemap_Game_With_CircuitPython/code.py index afd182fa3..49ac85252 100644 --- a/Tilemap_Game_With_CircuitPython/code.py +++ b/Tilemap_Game_With_CircuitPython/code.py @@ -273,7 +273,7 @@ print("loading map") load_map(MAPS[GAME_STATE["MAP_INDEX"]]) # Add the Group to the Display -display.show(group) +display.root_group = group # variables to store previous value of button state prev_up = False diff --git a/Tombstone_Matrix_Prop-Maker/code.py b/Tombstone_Matrix_Prop-Maker/code.py index 25c86923c..52cfeb92b 100644 --- a/Tombstone_Matrix_Prop-Maker/code.py +++ b/Tombstone_Matrix_Prop-Maker/code.py @@ -68,7 +68,7 @@ def scroll(line): g = displayio.Group() g.append(line1) -display.show(g) +display.root_group = g wavs = [] for filename in os.listdir('/tomb_sounds'): diff --git a/Vertical_Garden_Barometer/code.py b/Vertical_Garden_Barometer/code.py index c59818ad7..b52ef7187 100755 --- a/Vertical_Garden_Barometer/code.py +++ b/Vertical_Garden_Barometer/code.py @@ -111,7 +111,7 @@ timer_label.y = 114 text_group.append(timer_label) clue_display.append(text_group) -clue.display.show(clue_display) +clue.display.root_group = clue_display # Define color Palettes waterPalette = [0x00d9ff, 0x006f82, 0x43bfb9, 0x0066ff] @@ -231,7 +231,7 @@ while True: reading2_label.text = "Last {:.1f}".format(reading2) reading3_label.text = "Prev {:.1f}".format(reading3) timer_label.text = "{}".format(counter) - clue.display.show(clue_display) + clue.display.root_group = clue_display # Is it time to update? if counter > timeToCheck: diff --git a/Voice2Json_Edge_Detection/demo.py b/Voice2Json_Edge_Detection/demo.py index de64fc959..9ec8b9559 100644 --- a/Voice2Json_Edge_Detection/demo.py +++ b/Voice2Json_Edge_Detection/demo.py @@ -110,7 +110,7 @@ display = ST7789( ) splash = displayio.Group() -display.show(splash) +display.root_group = splash for output_line in shell_command(listen_command): process_output(output_line) diff --git a/Walkmp3rson/code.py b/Walkmp3rson/code.py index a3711b010..a586e0573 100644 --- a/Walkmp3rson/code.py +++ b/Walkmp3rson/code.py @@ -97,7 +97,7 @@ orange_dark = 0x472a16 # display main_display_group = displayio.Group() # everything goes in main group -display.show(main_display_group) # show main group (clears screen, too) +display.root_group = main_display_group # show main group (clears screen, too) # background bitmap w OnDiskBitmap tape_bitmap = displayio.OnDiskBitmap(open("mp3_tape.bmp", "rb")) diff --git a/Weather_Display_Matrix/openweather_graphics.py b/Weather_Display_Matrix/openweather_graphics.py index 290662967..fa35e4f63 100644 --- a/Weather_Display_Matrix/openweather_graphics.py +++ b/Weather_Display_Matrix/openweather_graphics.py @@ -58,7 +58,7 @@ class OpenWeather_Graphics(displayio.Group): # bg_sprite = displayio.TileGrid(background, pixel_shader=background.pixel_shader) splash.append(bg_sprite) - display.show(splash) + display.root_group = splash self.root_group = displayio.Group() self.root_group.append(self) @@ -155,7 +155,7 @@ class OpenWeather_Graphics(displayio.Group): else: self.wind_text.text = "%d mph" % wind - self.display.show(self.root_group) + self.display.root_group = self.root_group def set_icon(self, icon_name): """Use icon_name to get the position of the sprite and update diff --git a/Window_Skull_Matrix/code.py b/Window_Skull_Matrix/code.py index 0f1c1a23e..6ac936562 100644 --- a/Window_Skull_Matrix/code.py +++ b/Window_Skull_Matrix/code.py @@ -96,7 +96,7 @@ SPRITES.append(Sprite(EYE_DATA["eye_image"])) # Base image is opaque SPRITES.append(Sprite(EYE_DATA["lower_lid_image"], EYE_DATA["transparent"])) SPRITES.append(Sprite(EYE_DATA["upper_lid_image"], EYE_DATA["transparent"])) SPRITES.append(Sprite(EYE_DATA["stencil_image"], EYE_DATA["transparent"])) -DISPLAY.show(SPRITES) +DISPLAY.root_group = SPRITES EYE_CENTER = ( (EYE_DATA["eye_move_min"][0] + EYE_DATA["eye_move_max"][0]) # Pixel coords of eye diff --git a/literary-clock/code.py b/literary-clock/code.py index 3cf149e19..57ce1bcde 100644 --- a/literary-clock/code.py +++ b/literary-clock/code.py @@ -27,7 +27,7 @@ with open("quotes.csv", "r", encoding="UTF-8") as F: display = board.DISPLAY splash = displayio.Group() -display.show(splash) +display.root_group = splash arial = bitmap_font.load_font("fonts/Arial-12.pcf") bold = bitmap_font.load_font("fonts/Arial-Bold-12.pcf") diff --git a/pyportal_pet_planter/code.py b/pyportal_pet_planter/code.py index 37d7de561..9ad39984e 100755 --- a/pyportal_pet_planter/code.py +++ b/pyportal_pet_planter/code.py @@ -91,7 +91,7 @@ pyportal.set_backlight(0.5) splash = displayio.Group() # show splash group -display.show(splash) +display.root_group = splash # Palette for water bitmap palette = displayio.Palette(2) diff --git a/pyportal_weather_station/weatherstation_helper.py b/pyportal_weather_station/weatherstation_helper.py index e6f2efdf9..7a1b79b63 100755 --- a/pyportal_weather_station/weatherstation_helper.py +++ b/pyportal_weather_station/weatherstation_helper.py @@ -23,13 +23,13 @@ class WeatherStation_GFX(displayio.Group): def __init__(self, celsius=True): # root displayio group root_group = displayio.Group() - board.DISPLAY.show(root_group) + board.DISPLAY.root_group = root_group super().__init__() self._celsius = celsius # create background icon group self._icon_group = displayio.Group() - board.DISPLAY.show(self._icon_group) + board.DISPLAY.root_group = self._icon_group # create text object group self._text_group = displayio.Group() @@ -75,7 +75,7 @@ class WeatherStation_GFX(displayio.Group): self.sgp_text.x = 0 self.sgp_text.y = 155 - board.DISPLAY.show(self._text_group) + board.DISPLAY.root_group = self._text_group def display_io_status(self, status_text): """Displays the current IO status. diff --git a/ulab_Crunch_Numbers_Fast/cluebarometer/code.py b/ulab_Crunch_Numbers_Fast/cluebarometer/code.py index cba1c923b..0b3904ee5 100644 --- a/ulab_Crunch_Numbers_Fast/cluebarometer/code.py +++ b/ulab_Crunch_Numbers_Fast/cluebarometer/code.py @@ -11,7 +11,7 @@ from ulab import numpy as np # Blank the screen. Scrolling text causes unwanted delays. d = displayio.Group() -board.DISPLAY.show(d) +board.DISPLAY.root_group = d # Sampling rate: 16Hz # Cutoff frequency: 0.16Hz diff --git a/ulab_Crunch_Numbers_Fast/cluepulse/code.py b/ulab_Crunch_Numbers_Fast/cluepulse/code.py index cb880cc46..ca662dcd7 100644 --- a/ulab_Crunch_Numbers_Fast/cluepulse/code.py +++ b/ulab_Crunch_Numbers_Fast/cluepulse/code.py @@ -12,7 +12,7 @@ from ulab import numpy as np # Blank the screen. Scrolling text causes unwanted delays. import displayio d = displayio.Group() -board.DISPLAY.show(d) +board.DISPLAY.root_group = d # Filter computed at https://fiiir.com/ # Sampling rate: 8Hz diff --git a/ulab_Crunch_Numbers_Fast/waterfall/code.py b/ulab_Crunch_Numbers_Fast/waterfall/code.py index 23a2826be..6b67a7ca0 100644 --- a/ulab_Crunch_Numbers_Fast/waterfall/code.py +++ b/ulab_Crunch_Numbers_Fast/waterfall/code.py @@ -63,7 +63,7 @@ fft_size = 256 group.append(graph) # Add the Group to the Display -display.show(group) +display.root_group = group # instantiate board mic mic = audiobusio.PDMIn(board.MICROPHONE_CLOCK, board.MICROPHONE_DATA,