Skip to content

Trim unused LVGL features#119

Merged
zjwhitehead merged 1 commit into
unified-everything-appfrom
codex/lvgl-config-trim
Jul 16, 2026
Merged

Trim unused LVGL features#119
zjwhitehead merged 1 commit into
unified-everything-appfrom
codex/lvgl-config-trim

Conversation

@zjwhitehead

Copy link
Copy Markdown
Member

Summary

  • Disable unused LVGL widgets, including arc, button, chart, menu, table, textarea, spinner, and their composite widgets.
  • Disable the unused flex and grid layout engines.
  • Keep the widgets used by the controller UI enabled: bar, image, label, line, LED, animation support, and the default theme.

Why

LVGL's default theme references enabled widget classes, so unused widgets were retained in the firmware even though the application never creates them. Disabling those features at compile time removes their code without changing the rendered UI or runtime behavior.

Impact

The isolated debug firmware build uses 1,210,653 bytes of flash, approximately 56 KB less than the 1,267,085-byte baseline. RAM usage remains effectively unchanged.

Validation

  • Production ESP32-S3 PlatformIO build passed.
  • 28 version-independent LVGL screenshot golden tests passed in an isolated worktree.
  • Splash tests were excluded from this focused PR because the base branch's references still contain v8.0 while the firmware reports v8.1; that test-maintenance fix is being kept separate.

@zjwhitehead
zjwhitehead marked this pull request as ready for review July 12, 2026 01:32
@zjwhitehead
zjwhitehead force-pushed the codex/lvgl-config-trim branch from bab8f4f to 2724af1 Compare July 12, 2026 01:34
@zjwhitehead
zjwhitehead merged commit 659682c into unified-everything-app Jul 16, 2026
9 checks passed
@zjwhitehead
zjwhitehead deleted the codex/lvgl-config-trim branch July 16, 2026 02:47
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