Skip to content

displayio/lvgl: draw 8-bit color displays as RGB332 - #12038

Merged
tannewt merged 1 commit into
adafruit:mainfrom
MakerClassCZ:lvgl-rgb332
Dec 4, 2026
Merged

tannewt merged 1 commit into
adafruit:mainfrom
MakerClassCZ:lvgl-rgb332

Conversation

@lynt-smitka

Copy link
Copy Markdown

Non-grayscale 8-bit framebuffers and BusDisplays (such as picodvi color_depth=8) expect RGB332, but the LVGL core rendered them as L8, so colours came out grey. LVGL has no RGB332 format, so this renders RGB565 and packs each flushed area to RGB332, as legacy displayio does.

Checked in the CP Desktop Lab against legacy displayio and built for adafruit_metro_esp32p4; not run on hardware.

Created with LLM 🤖.

8-bit framebuffers and BusDisplays that aren't grayscale expect RGB332, but LVGL rendered them as L8 and colors came out grey. LVGL has no RGB332, so render RGB565 and pack each flushed area to RGB332.

@tannewt tannewt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@tannewt
tannewt merged commit 5fa6354 into adafruit:main Dec 4, 2026
646 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.

2 participants