When lvgl is upgraded to the differenct versions,
sometime lvgl’s structures or apis are changed.
(such as version 6.x to version dev-7.0 etc…)
At higher-api project/library that bases on a version of lvgl,
maybe occurs some errors if the project/library want to upgrad to the other version of lvgl.
So the developer can check lvgl’s version
for escaping the errors from lvgl’s differenct changed structures/api,
it’s better if lvgl has version information in lvgl.h or in any main file header too.
( Like lwip library has version information in the init.h file. )