-
Notifications
You must be signed in to change notification settings - Fork 30
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
Questions on best practices for using emscripten + lvgl #19
Comments
Hi @sukesh-ak, Great questions!
Normally the LVGL UI is very portable. The only place where this "cross-platformness" can be broken is the events. So unless you add something like
Any LVGL code can be compiled by Emscripten. So basically you can do anything in LVGL, it will work on web too. Assuming you don't use HW specific functions.
Yes, I highly recommend it. I used
Yes, it's ok. However note that
The LVGL UI can be easily resized by updating the display driver. However, I'm not sure about how to update the SDL part to have a canvas with different size. Have you already checked that? |
@kisvegabor Thanks for the response. I have already tried to separate the UI from Hardware code using I have also used both ways using Interesting about the
I don't need it to be changed dynamically like screen resizing but just first time while loading. For example if my UI is used on Smartphone browser vs iPad/PC etc. The autogenerated html file has some code for the size of the canvas, so I believe we can do this during html file load. Not tried yet though. |
This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi @sukesh-ak ,
Regards; |
I don't have anything to share publicly. Will do once I get some time to write a simple prototype. For 3) |
thanks |
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
-TIA
The text was updated successfully, but these errors were encountered: