Skip to content

Commit 0a50f62

Browse files
authored
Merge pull request #10 from prcutler/root-group-fix
Update with root_group for CP 9 compatibility
2 parents 8f75ea6 + 0602583 commit 0a50f62

6 files changed

+6
-6
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Usage Example
156156
157157
main_group.append(flip_digit)
158158
159-
display.show(main_group)
159+
display.root_group = main_group
160160
161161
while True:
162162
for i in range(10):

examples/displayio_flipclock_flipdigit_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
main_group.append(flip_digit)
8686

8787
# show the group on the display
88-
display.show(main_group)
88+
display.root_group = main_group
8989

9090
while True:
9191
# loop over values 0-9

examples/displayio_flipclock_hours_and_minutes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
main_group.append(clock)
8989

9090
# show the group on the display
91-
board.DISPLAY.show(main_group)
91+
board.DISPLAY.root_group = main_group
9292

9393
# variables to store hours and minutes values
9494
cur_hour = clock.first_pair

examples/displayio_flipclock_ntp_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676

7777
main_group = Group()
7878
main_group.append(clock)
79-
board.DISPLAY.show(main_group)
79+
board.DISPLAY.root_group = main_group
8080

8181
while True:
8282
try:

examples/displayio_flipclock_simpletest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
main_group.append(clock)
8787

8888
# show the group on the display
89-
board.DISPLAY.show(main_group)
89+
board.DISPLAY.root_group = main_group
9090

9191
# set a value to start with in the first pair
9292
clock.first_pair = "13"

examples/displayio_flipdigit_smaller_pyportal.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
main_group.append(flip_digit)
9696

9797
# show the group on the display
98-
display.show(main_group)
98+
display.root_group = main_group
9999

100100

101101
while True:

0 commit comments

Comments
 (0)