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

Update how board.DISPLAY is checked #37

Merged
merged 1 commit into from
Feb 12, 2025
Merged

Update how board.DISPLAY is checked #37

merged 1 commit into from
Feb 12, 2025

Conversation

jepler
Copy link
Contributor

@jepler jepler commented Feb 12, 2025

Historically, boards with no built-in display have not had a board.DISPLAY property.

Soon, with adafruit/circuitpython#10028, any board with displayio will have a board.DISPLAY property. This property will be None if no display is configured, or a truthy non-None value if a display is configured (including dynamically at runtime).

This revised check will work on both old and new circuitpython versions.

Historically, boards with no built-in display have not had a `board.DISPLAY` property.

Soon, with adafruit/circuitpython#10028, any board with displayio will have a `board.DISPLAY` property. This property will be `None` if no display is configured, or a truthy non-`None` value if a display is configured (including dynamically at runtime).

This revised check will work on both old and new circuitpython versions.
Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

Thank you!

@FoamyGuy FoamyGuy merged commit f9b95d2 into main Feb 12, 2025
2 checks passed
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Feb 13, 2025
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.

2 participants