Repository navigation
Show 8-bit images with a ColorConverter on LVGL displays - #12025
Open
mikeysklar wants to merge 2 commits into
Open
mikeysklar wants to merge 2 commits into
mikeysklar wants to merge 2 commits into
Conversation
A TileGrid with a 1, 2, 4 or 8 bit Bitmap and a ColorConverter raised "Format not supported" with LVGL displayio, except 8-bit L8. Draw it as an indexed image instead, with a 256 entry table of the colors the converter gives each value, the same way a Palette is drawn. The pixels match legacy displayio. make_transparent() and make_opaque() now tell LVGL, so the table and any shapes using the converter redraw. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tannewt
requested changes
Dec 3, 2026
tannewt
left a comment
Member
There was a problem hiding this comment.
Please add some native_sim based tests for this.
Draws 1, 2, 4 and 8 bit bitmaps through a ColorConverter on both displayio compositors and compares the frame pixel for pixel, including transparency and a scaled group. On LVGL, also checks that make_transparent() and make_opaque() redraw a TileGrid that is shown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Added native_sim tests for both compositors. They fail on main with "Format not supported", and the redraw test also fails without the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Bitmaps of 8 bits or fewer with a ColorConverter now draw on LVGL displays.
Why
They raised "Format not supported", so the Qualia S3 Compass guide crashed.
Test code.py and output
Legacy displayio (run before the L8 transparency case was added):
LVGL with this PR:
Not covered: a converter shared with a 16-bit TileGrid ignores later transparency, as before.
Written with Claude Code; I checked the pixel results and photos on the board.
🤖 Generated with Claude Code