We have created an LVGL App that runs in a Web Browser and on Pine64 PinePhone…
We compiled LVGL Library from C to WebAssembly with Zig Compiler
We wrote our LVGL App in the Zig Programming Language (instead of C)
Exact same code runs in a Web Browser and on PinePhone (with Apache NuttX RTOS)
Which is super helpful for prototyping LVGL Apps
Check out the details in this article:
“NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly”
(Try it in your Web Browser)
(Watch the Demo on YouTube)
How it looks on PinePhone:
And how we tested in a Web Browser with WebAssembly:
2 Likes
Amazing! I’ll share it our newsletter
1 Like
Thank you so much! I hope someday we can build and test an entire LVGL App in our Web Browser
Now we have Emscripten to build HTML form C, but its only for demos. I wonder what improvement ideas you have in mind?
2 Likes
Maybe we can drag-and-drop to create an LVGL App in the Web Browser? And we test the LVGL App in the Web Browser with WebAssembly?
We might have a way to drag-and-drop a Zig Program in the Web Browser: GitHub - lupyuen3/blockly-zig-nuttx: Visual Programming for Zig with NuttX Sensors
We will do exactly this with SquareLine v2 (it’s still under development)
1 Like
CONGRATZ!! NuttX RTOS and LVGL ROX!
1 Like
so are we not able to build html for our own LVGL projects? only demos?
Sorry I’m no longer maintaining this project. Maybe we should explore SquareLine v2? (As mentioned above)
cederom
September 9, 2024, 10:12pm
11
LVGL Project Ctreator [1] v1.0.0 just showed up and this may be our tool for creating UI apps on NuttX RTOS [2] we “just” need to create the integration
[1] GitHub - lvgl/project-creator: Create LVGL projects quickly and easily
[2] https://nuttx.apache.org/