Skip to content

Update with root_group for CP 9 compatibility #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Usage Example

main_group.append(flip_digit)

display.show(main_group)
display.root_group = main_group

while True:
for i in range(10):
Expand Down
2 changes: 1 addition & 1 deletion examples/displayio_flipclock_flipdigit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
main_group.append(flip_digit)

# show the group on the display
display.show(main_group)
display.root_group = main_group

while True:
# loop over values 0-9
Expand Down
2 changes: 1 addition & 1 deletion examples/displayio_flipclock_hours_and_minutes.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
main_group.append(clock)

# show the group on the display
board.DISPLAY.show(main_group)
board.DISPLAY.root_group = main_group

# variables to store hours and minutes values
cur_hour = clock.first_pair
Expand Down
2 changes: 1 addition & 1 deletion examples/displayio_flipclock_ntp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

main_group = Group()
main_group.append(clock)
board.DISPLAY.show(main_group)
board.DISPLAY.root_group = main_group

while True:
try:
Expand Down
2 changes: 1 addition & 1 deletion examples/displayio_flipclock_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
main_group.append(clock)

# show the group on the display
board.DISPLAY.show(main_group)
board.DISPLAY.root_group = main_group

# set a value to start with in the first pair
clock.first_pair = "13"
Expand Down
2 changes: 1 addition & 1 deletion examples/displayio_flipdigit_smaller_pyportal.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
main_group.append(flip_digit)

# show the group on the display
display.show(main_group)
display.root_group = main_group


while True:
Expand Down