Skip to content

Questions on best practices for using emscripten + lvgl #19

Open
@sukesh-ak

Description

@sukesh-ak

First of all, thank you so much for LVGL and making it work with emscripten.
I was already a fan of lvgl and now even more with this discovery. I just got it working :)

@kisvegabor I have few questions for using lvgl with emscripten.

What I am building

TFT UI using LVGL with backend data coming from websocket.
Currently using ESP32-S3 for UI but later it will be ported to RPI (Linux), Circle (RPI) and probably STM32 as well.
I am quite comfortable with lvgl already and also use lv_msg in my application.

What I want to know in this LVGL + emscripten context

  • What are the best practices for using lvgl widgets + interaction with lvgl since I would like to increase code sharing?
  • What should I avoid in the UI portion of the code so that web version is pretty straight forward to be implemented?
  • Is it ok to build using lv_msg for the UI API so that from web I can send messages to LVLG?
  • Is it ok to use lv_timer so that its portable in both cases?
  • Can I pass screen resolution (or dimension) from web page to resize the lvgl UI?

-TIA

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions