lvgl
๐๐๐๐ ๐.๐? -> Upgrade the Coffee Dispenser demo
Triggered by Lukas Kosinski’s like for the post about the LVGL 9.6 release (the last before version 10) today, I thought: let’s dust off the LVGL-coffee-dispenser-demo I did four months ago (๐ฎ๐ข๐ฏ, ๐ต๐ฆ๐ฎ๐ฑ๐ถ๐ด ๐ง๐ถ๐จ๐ช๐ต…) and see if the performance of the software renderer really improved.
How to determine this? Of course: ๐ฉ๐ซ๐จ๐๐ข๐ฅ๐ข๐ง๐ .
Added a harness for the benchmark, did some runs with the current state and documented them.
Then did the version bump (๐ฌ๐ฎ๐ซ๐ฉ๐ซ๐ข๐ฌ๐ข๐ง๐ ๐ฅ๐ฒ ๐๐๐๐จ๐ซ๐ญ๐ฅ๐๐ฌ๐ฌ โ only a one-liner in a header had to be changed aside from the submodule update). Clean, rebuild, run the profiling again and compare.
The first results were not really impressive – a meagre ๐% improvement. Not the claimed 1.33ร from the LVGL creators.
On ๐ซ๐๐ฏ๐ข๐๐ฐ later, the culprit was found and fixed: the benchmark’s own redraw path invalidated too much of the active screen. With a new run, I now see a ๐๐% ๐ฉ๐๐ซ๐๐จ๐ซ๐ฆ๐๐ง๐๐ ๐ข๐ฆ๐ฉ๐ซ๐จ๐ฏ๐๐ฆ๐๐ง๐ญ ๐๐จ๐ซ ๐ฌ๐จ๐๐ญ๐ฐ๐๐ซ๐ ๐ซ๐๐ง๐๐๐ซ๐ข๐ง๐ .
Well done, LVGL team ๐
Code, measurements on GitHub: https://github.com/marcelpetrick/LVGL_coffeeDispenser as always feel free to fork
#
Yesterday while driving to work, I was thinking: shouldn’t it be possible to use modern #CMake to handle what we usually do with a #Git submodule?
So, let’s turn that idea into a working prototype and test it in practice.
For this example, CMake ๐ ๐๐ญ๐๐ก๐๐จ๐ง๐ญ๐๐ง๐ญ is used instead of a Git submodule to provide #LVGL for a minimal demo application.
๐๐ก๐ ๐๐๐ฉ๐๐ง๐๐๐ง๐๐ฒ ๐๐ข๐ ๐ง๐จ๐ญ ๐๐ข๐ฌ๐๐ฉ๐ฉ๐๐๐ซ. ๐๐ฐ๐ง๐๐ซ๐ฌ๐ก๐ข๐ฉ ๐จ๐ ๐๐๐ฉ๐๐ง๐๐๐ง๐๐ฒ ๐๐๐ช๐ฎ๐ข๐ฌ๐ข๐ญ๐ข๐จ๐ง ๐ฆ๐จ๐ฏ๐๐ ๐๐ซ๐จ๐ฆ ๐ญ๐ก๐ ๐๐ข๐ญ ๐๐ก๐๐๐ค๐จ๐ฎ๐ญ ๐ฆ๐จ๐๐๐ฅ ๐ญ๐จ ๐ญ๐ก๐ ๐๐๐๐ค๐ ๐๐จ๐ง๐๐ข๐ ๐ฎ๐ซ๐ ๐ฆ๐จ๐๐๐ฅ.
๐๐ฉ๐ข๐ต ๐ช๐ด ๐ข๐ค๐ต๐ถ๐ข๐ญ๐ญ๐บ ๐ค๐ฉ๐ข๐ฏ๐จ๐ช๐ฏ๐จ?
* the VCS structure: LVGL is no longer part of the parent repository as a Git submodule
* the physical layout: the dependency moves from the source tree into the build tree
* the control: CMake declares the requested LVGL revision
* build graph: no ๐ this is almost unchanged โ LVGL is still compiled and linked as a normal target
So, CMake does not replace Git. Git is still needed, but it is now invoked by CMake during configuration instead of being handled upfront by the developer.
The example can be found on GitHub: https://github.com/marcelpetrick/codingWithGPT/tree/master/cmakeFetchContentVersusGitSubmodule
Thank you for your attention ๐
Good news: ๐๐๐๐ YAML translations with ๐๐ฎ๐ญ๐๐๐ข๐ง๐ ๐จ๐๐ฑ๐ฉ๐ซ๐๐ฌ๐ฌ ๐.๐.๐
Since #Qt is not the only champion in the embedded domain, I’ve expanded the supported frameworks by making it possible to run it on the #i18n files from #LVGL as well. Maybe it is handy for someone else too ๐
The new mode is invoked with --lvgl-yaml, and you have to do it explicitly. The existing usage for TS files remains unchanged.
The source YAML files also stay untouched, so the result is written to a file named for each output language.
In the background, I also did some other plumbing, which had been on the list for a while: GitHub Actions now also cover the dependency graph, neat badges showing the pipeline states in the README.md, updated dependencies, and some quality hardening. So we have 58 automated tests now, 100% statement coverage, and Pylint reports 10/10.
That polishing and the above-mentioned feature are the result of continuous market review and constant adaptation. New competitors and technical standards emerge; as developers, we should be ready to embrace change and adapt.
Give me feedback if some other translation files need coverage as well.
Link to to the repo:ย https://github.com/marcelpetrick/CuteLingoExpress




