lvgl / lv_demos

Examples, tutorials and applications for the LVGL embedded GUI library
https://lvgl.io
488 stars 366 forks source link

Could you offer a simplest demo? #149

Closed sonictl closed 2 years ago

sonictl commented 2 years ago

The learning curve for lvgl is sharp. Could you offer a simplest example that only contains one component in screen and compilable main.c file that out-of-box.

Thank you very much!

kisvegabor commented 2 years ago

You can find 100+ simple examples here: https://docs.lvgl.io/master/examples.html They are from here https://github.com/lvgl/lvgl/tree/master/examples

sonictl commented 2 years ago

@kisvegabor Thank you very much for your soon answer!! I guess the example code does not contain the main() function and I don't know how to compile them.

is there any blog post/ tutorial showing how to use these simple examples for newbie. I follows this link but found their guidance is very limited. I met too many errors when trying to compile my code.

kisvegabor commented 2 years ago

Just call e.g. lv_example_btn_1() in your main function.

sonictl commented 2 years ago

Awsome~!