Skip to content
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

displayio: add, check "readonly" flag for groups #8923

Merged
merged 3 commits into from
Feb 16, 2024

Conversation

jepler
Copy link
Member

@jepler jepler commented Feb 15, 2024

Testing performed on pycamera / memento

  • the "filter demo" program works
  • trying to append something to dispoayio.CIRCUITPYTHON_TERMINAL raises "RuntimeError: Read-only"

However, for some reason serial output wasn't echoing back to the computer(!) during my test, I could only read it on the LCD(!). I can't guess why this could be related to this PR but maybe it is; I haven't seen it before now and it's a weird failure to go unnoticed for any length of time. [reproduced with c84c066 but not on a different computer, so I'll chalk it up to "laptop needs to be rebooted and is acting out"]

closes: #8873

@dhalbert dhalbert requested a review from tannewt February 15, 2024 14:09
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment about the test. Thanks for the fix!

shared-module/displayio/Group.c Outdated Show resolved Hide resolved
@jepler
Copy link
Member Author

jepler commented Feb 16, 2024

I think some stuff about declaring the splash screen can be simplified but I didn't want to add it to this PR: https://github.com/jepler/circuitpython/compare/groups-in-rom...jepler:circuitpython:splash-readonly-memory?expand=1

@jepler jepler changed the title displayio: add, check "in rom" flag for groups displayio: add, check "readonly" flag for groups Feb 16, 2024
@jepler jepler requested a review from tannewt February 16, 2024 16:10
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok! Thanks for trying it!

@tannewt tannewt merged commit 02a4886 into adafruit:main Feb 16, 2024
418 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hard Crash calling display.root_group.append(empty_group)
2 participants