lv_binding_rust icon indicating copy to clipboard operation
lv_binding_rust copied to clipboard

Make it possible to define LVGL config in a higher level format

Open rafaelcaricio opened this issue 5 years ago • 0 comments

Would be nice to define library properties in a high level format than lv_conf.h file. Possibly, a lv_conf.toml would be a better approach. We could do validations and consistency checks at build time (build.rs) and generate the final lv_conf.h dynamically right before compilation.

An example content of how the lv_conf.toml could look like:

# ====================
#  Graphical settings
# ====================
[graphical]
# Maximal horizontal and vertical resolution to support by the library.
hor_res_max=480
ver_res_max=320

Users would be required to define only what differs from the default values. That way, it is easier to spot differences or custom configurations.

rafaelcaricio avatar May 30 '20 22:05 rafaelcaricio