Skip to content

Let ESP32-S3 boards build with the LVGL display core - #11976

Open
mikeysklar wants to merge 1 commit into
adafruit:mainfrom
mikeysklar:lvgl-esp32s3-build
Open

mikeysklar wants to merge 1 commit into
adafruit:mainfrom
mikeysklar:lvgl-esp32s3-build

Conversation

@mikeysklar

Copy link
Copy Markdown
Collaborator

What

ESP32-S3 boards can now be built with the LVGL display core turned on.

Why

It only built on the P4 and S31, which have a graphics accelerator the S3 lacks.

Change
Accelerator (PPA) Linked and used only on chips that have one
LV_CONF_INCLUDE_SIMPLE Set whenever LVGL is on, not per chip
GC block size 64 bytes when LVGL is on, for LVGL's draw buffer alignment (P4 and S31 already use 64)
JpegDecoderFast.c Drop an initializer the LVGL area type doesn't have
Tested
Board Adafruit Qualia ESP32-S3, 4" 720x720 panel (5795), CIRCUITPY_DISPLAYIO_LVGL=1 CIRCUITPY_BLEIO_NATIVE=0 CIRCUITPY_ULAB=0
Result Boots; displayio output equals legacy displayio at 60/60 pixel checks; 95,280 bytes flash free
Builds Metro ESP32-P4 and S31 korvo_1 defaults build
Flash Qualia with only LVGL on is 237,376 bytes over its 2 MB firmware space
Not changed No board turns LVGL on by default

Which way should an S3 board make room: turn modules off, or a larger firmware partition?

Written with Claude Code. Results are build logs and serial output from the board.

🤖 Generated with Claude Code

Building with CIRCUITPY_DISPLAYIO_LVGL=1 only worked on the P4 and S31.

- Link the PPA components and turn on LVGL's PPA draw unit only on
  chips that have a PPA.
- Add LV_CONF_INCLUDE_SIMPLE whenever LVGL is on, not only in the P4 and
  S31 sections.
- Use 64-byte GC blocks when LVGL is on, so heap draw buffers meet
  LV_DRAW_BUF_ALIGN. The P4 and S31 already do.
- Drop the extra initializer in JpegDecoderFast.c. The LVGL
  displayio_area_t has no next field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant