Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LVGL: Multiple Displays #83567

Open
towen opened this issue Jan 5, 2025 · 0 comments
Open

LVGL: Multiple Displays #83567

towen opened this issue Jan 5, 2025 · 0 comments
Assignees
Labels
area: LVGL Light and Versatile Graphics Library Support Feature Request A request for a new feature

Comments

@towen
Copy link

towen commented Jan 5, 2025

Is your feature request related to a problem? Please describe.
It does not appear to be possible to use multiple displays with LVGL in Zephyr, even though LVGL itself supports multiple displays.
In modules/lvgl/lvgl.c zephyr is hardcoded to reference one display device:
#define DISPLAY_NODE DT_CHOSEN(zephyr_display)

Describe the solution you'd like
If not using CONFIG_LV_Z_AUTO_INIT, then LVGL could be initialised manually with two separate contexts, using different display devices.
Instead of simply calling lvgl_init(), we could call a new function lvgl_init_display(const struct device *display_dev)

Describe alternatives you've considered
lvgl.c uses unencapsulated variables (display and disp_data) and would need to be rewritten.. There are various KConfigs to define display settings (colour depth, etc) so supporting multiple different displays may be difficult, but multiple identical displays should be possible with less effort.

@towen towen added the Feature Request A request for a new feature label Jan 5, 2025
@faxe1008 faxe1008 added the area: LVGL Light and Versatile Graphics Library Support label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: LVGL Light and Versatile Graphics Library Support Feature Request A request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants