diff --git a/README.rst b/README.rst index f90ba5a..34385c1 100644 --- a/README.rst +++ b/README.rst @@ -82,7 +82,7 @@ Usage Example # 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) diff --git a/examples/displayio_sh1107_game_of_life.py b/examples/displayio_sh1107_game_of_life.py index 906b7a1..4a7c310 100644 --- a/examples/displayio_sh1107_game_of_life.py +++ b/examples/displayio_sh1107_game_of_life.py @@ -109,7 +109,7 @@ def conway(output): tg2 = displayio.TileGrid(b2, pixel_shader=palette) g1 = displayio.Group(scale=SCALE) g1.append(tg1) -display.show(g1) +display.root_group = g1 g2 = displayio.Group(scale=SCALE) g2.append(tg2) @@ -126,7 +126,7 @@ def conway(output): # values, 400 frames seems like a good number. Working in this way, with # two bitmaps, reduces copying data and makes the animation a bit faster for _ in range(n): - display.show(g1) + display.root_group = g1 apply_life_rule(b1, b2) display.show(g2) apply_life_rule(b2, b1) diff --git a/examples/displayio_sh1107_mono_128x128_test.py b/examples/displayio_sh1107_mono_128x128_test.py index 1901757..d83fe47 100644 --- a/examples/displayio_sh1107_mono_128x128_test.py +++ b/examples/displayio_sh1107_mono_128x128_test.py @@ -43,7 +43,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) diff --git a/examples/displayio_sh1107_random_motion.py b/examples/displayio_sh1107_random_motion.py index 087ea62..8004932 100644 --- a/examples/displayio_sh1107_random_motion.py +++ b/examples/displayio_sh1107_random_motion.py @@ -35,7 +35,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) diff --git a/examples/displayio_sh1107_simpletest.py b/examples/displayio_sh1107_simpletest.py index eb711aa..8e7e1e9 100644 --- a/examples/displayio_sh1107_simpletest.py +++ b/examples/displayio_sh1107_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)