LVGL Migration Notes
This page tracks the migration work for the Display LVGL section.
Current Status
The LVGL binding exists in EdgeTX, and the docs site now includes a checked-in Display LVGL section with grouped links to generated lvgl.* pages. However, LVGL still does not yet have the same level of extractable LuaDoc coverage as the older runtime, lcd, and model APIs.
Upstream Source Of Truth
The current LVGL Lua binding surface is defined primarily in these upstream files:
radio/src/lua/api_colorlcd_lvgl.cppradio/src/lua/lua_lvgl_widget.cppradio/src/lua/lua_lvgl_widget.h
api_colorlcd_lvgl.cpp exposes the public lvgl Lua library. The widget implementation files define the supported object types and many of the accepted parameter keys.
Migration Goals
The target state is:
- upstream C++ comments are the source of truth for LVGL syntax
- the docs pipeline extracts
lvgl.*APIs the same way it already extractsruntime,lcd, andmodel - the MkDocs
Display LVGLsection becomes a fully pipeline-driven user-facing reference with minimal manual maintenance
Current Gaps
The remaining migration gaps are:
- fuller LuaDoc coverage for the supported table keys of each object type
- better documentation coverage for exported constants that matter to script authors
- smoother alignment between generated LVGL output and the checked-in
API Referencestructure
Recommended Grouping
The current API surface suggests this eventual user-facing grouping:
- Runtime Helpers
- Drawing Primitives
- Containers
- Interactive Controls
- Pickers And Selectors
- Popup Helpers
- Constants