Skip to content

displayio API update #101

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 2 commits into from
May 30, 2025
Merged

Conversation

FoamyGuy
Copy link
Contributor

No description provided.

bits = bits << 1
else:
bits += 8
self._bits_per_value = bits
Copy link
Contributor Author

@FoamyGuy FoamyGuy May 30, 2025

Choose a reason for hiding this comment

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

This mimics the logic from blinka displayio here: https://github.com/adafruit/Adafruit_Blinka_Displayio/blob/01b274d3a058b8efb7b3c3638511724cbc290a7d/displayio/_bitmap.py#L64-L68

It may ultimately be worth spending a little time to try to update these tests to utilize Blinka Displayio instead of these one-off mocked implementations of core classes anywhere possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that the tests failing was unrelated to the primary change in this PR. I believe the root cause of that is bitmaptools being added to Blinka Displayio since the last time these tests were run. The code for this test takes a path that involves using both these mocked Interface class, and the new implementations of bitmaptools which exposed that the Interface was missing this internal field that readinto is relying on.

@FoamyGuy FoamyGuy requested a review from a team May 30, 2025 19:44
@dhalbert dhalbert merged commit 5afd98c into adafruit:main May 30, 2025
1 check 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.

2 participants