From adbbbea440948d12bf7bcf8158ee16bf69fbb45e Mon Sep 17 00:00:00 2001 From: Paul Cutler Date: Fri, 3 Nov 2023 06:19:26 -0500 Subject: [PATCH] Update root_group for CP 9 compatibility --- README.rst | 2 +- examples/ssd1351_128x96_simpletest.py | 2 +- examples/ssd1351_simpletest.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index c8ccd73..366ed91 100644 --- a/README.rst +++ b/README.rst @@ -50,7 +50,7 @@ Usage Example # Make the display context splash = displayio.Group() - display.show(splash) + display.root_group = splash color_bitmap = displayio.Bitmap(128, 128, 1) color_palette = displayio.Palette(1) diff --git a/examples/ssd1351_128x96_simpletest.py b/examples/ssd1351_128x96_simpletest.py index c7631e7..beb9736 100644 --- a/examples/ssd1351_128x96_simpletest.py +++ b/examples/ssd1351_128x96_simpletest.py @@ -27,7 +27,7 @@ # Make the display context splash = displayio.Group() -display.show(splash) +display.root_group = splash color_bitmap = displayio.Bitmap(128, 96, 1) color_palette = displayio.Palette(1) diff --git a/examples/ssd1351_simpletest.py b/examples/ssd1351_simpletest.py index dcd8a1b..9d3fc98 100644 --- a/examples/ssd1351_simpletest.py +++ b/examples/ssd1351_simpletest.py @@ -27,7 +27,7 @@ # Make the display context splash = displayio.Group() -display.show(splash) +display.root_group = splash color_bitmap = displayio.Bitmap(128, 128, 1) color_palette = displayio.Palette(1)