Skip to content

Commit 0ab1e80

Browse files
authored
Merge pull request #36 from prcutler/root-group-fix
Update root_group for CP 9 compatibility
2 parents be1e989 + e062bab commit 0ab1e80

4 files changed

+4
-4
lines changed

examples/displayio_ssd1306_64x32_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# Make the display context
2525
splash = displayio.Group()
26-
display.show(splash)
26+
display.root_group = splash
2727

2828
color_bitmap = displayio.Bitmap(64, 32, 1)
2929
color_palette = displayio.Palette(1)

examples/displayio_ssd1306_featherwing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# Make the display context
2323
splash = displayio.Group()
24-
display.show(splash)
24+
display.root_group = splash
2525

2626
color_bitmap = displayio.Bitmap(128, 32, 1)
2727
color_palette = displayio.Palette(1)

examples/displayio_ssd1306_picowbell_tempsensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
layer1.append(temp_label)
8585
layer1.append(humidity_label)
8686
layer1.append(pressure_label)
87-
display.show(layer1)
87+
display.root_group = layer1
8888

8989
while True:
9090
# Convert temp C to F

examples/displayio_ssd1306_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Make the display context
3838
splash = displayio.Group()
39-
display.show(splash)
39+
display.root_group = splash
4040

4141
color_bitmap = displayio.Bitmap(WIDTH, HEIGHT, 1)
4242
color_palette = displayio.Palette(1)

0 commit comments

Comments
 (0)