From e062bab539a83ab35cc969f324d8f9f7a48a935c Mon Sep 17 00:00:00 2001 From: Paul Cutler Date: Fri, 3 Nov 2023 06:22:47 -0500 Subject: [PATCH] Update root_group for CP 9 compatibility --- examples/displayio_ssd1306_64x32_simpletest.py | 2 +- examples/displayio_ssd1306_featherwing.py | 2 +- examples/displayio_ssd1306_picowbell_tempsensor.py | 2 +- examples/displayio_ssd1306_simpletest.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/displayio_ssd1306_64x32_simpletest.py b/examples/displayio_ssd1306_64x32_simpletest.py index a8ee7cc..38b3673 100644 --- a/examples/displayio_ssd1306_64x32_simpletest.py +++ b/examples/displayio_ssd1306_64x32_simpletest.py @@ -23,7 +23,7 @@ # Make the display context splash = displayio.Group() -display.show(splash) +display.root_group = splash color_bitmap = displayio.Bitmap(64, 32, 1) color_palette = displayio.Palette(1) diff --git a/examples/displayio_ssd1306_featherwing.py b/examples/displayio_ssd1306_featherwing.py index 644cca5..b77942d 100644 --- a/examples/displayio_ssd1306_featherwing.py +++ b/examples/displayio_ssd1306_featherwing.py @@ -21,7 +21,7 @@ # Make the display context splash = displayio.Group() -display.show(splash) +display.root_group = splash color_bitmap = displayio.Bitmap(128, 32, 1) color_palette = displayio.Palette(1) diff --git a/examples/displayio_ssd1306_picowbell_tempsensor.py b/examples/displayio_ssd1306_picowbell_tempsensor.py index dd56bb7..85032e4 100644 --- a/examples/displayio_ssd1306_picowbell_tempsensor.py +++ b/examples/displayio_ssd1306_picowbell_tempsensor.py @@ -84,7 +84,7 @@ layer1.append(temp_label) layer1.append(humidity_label) layer1.append(pressure_label) -display.show(layer1) +display.root_group = layer1 while True: # Convert temp C to F diff --git a/examples/displayio_ssd1306_simpletest.py b/examples/displayio_ssd1306_simpletest.py index 11fa6b5..27c107f 100644 --- a/examples/displayio_ssd1306_simpletest.py +++ b/examples/displayio_ssd1306_simpletest.py @@ -36,7 +36,7 @@ # Make the display context splash = displayio.Group() -display.show(splash) +display.root_group = splash color_bitmap = displayio.Bitmap(WIDTH, HEIGHT, 1) color_palette = displayio.Palette(1)