Skip to content

Commit 37577bc

Browse files
authored
Merge pull request #28 from prcutler/root-group-update
Update with display.root_group for CP 9 compatibility
2 parents 514e97c + 2b7bd6e commit 37577bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/stmpe610_button_demo.py

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

6262
# Create the displayio group and show it
6363
splash = displayio.Group()
64-
display.show(splash)
64+
display.root_group = splash
6565

6666
# Defiine the button
6767
button = Button(

examples/stmpe610_touch_calibrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
# Activate the display graphics unless REPL_ONLY=True.
9090
if not REPL_ONLY:
9191
display_group = displayio.Group()
92-
display.show(display_group)
92+
display.root_group = display_group
9393

9494
# Instantiate touchscreen.
9595
ts_cs = digitalio.DigitalInOut(board.D6)

0 commit comments

Comments
 (0)