1.6 KiB
:github_url: https://github.com/littlevgl/docs/blob/master/en/lv_examples/README.md
:github_url: https://github.com/littlevgl/docs/blob/master/lv_examples/README.md
Examples for Littlev Graphics Library
LittlevGL is a free and open-source graphics library providing everything you need to create a Graphical User Interface (GUI) on embedded systems with easy-to-use graphical elements, beautiful visual effects and low memory footprint.
GitHub: https://github.com/littlevgl/lvgl Website: https://littlevgl.com
Add the examples to your projects
- Clone this repository:
git clone https://github.com/littlevgl/lv_examples.git
or download from the Download page. To always use the newest version the cloning is recommended. - The
lv_examples
directory should be next to thelvgl
directory in your project.
Similary to lv_conf.h
there is a configuration file for the examples too. It is called lv_ex_conf.h
.
- Copy
lv_examples/lv_ex-conf_templ.h
next tolv_examples
directory - Rename is to
lv_ex_conf.h
- Delete the first
#if
and last#endif
to enable the file's content - Enable or Disable modules
To find out more about each example, look at its specific README file.
Contributing
For contribution and coding style guidelines, please refer to the file docs/CONTRIBUTNG.md in the main LittlevGL repo: https://github.com/littlevgl/lvgl You are encouraged to use the 'astyle' util to format your code prior to pushing it. The files docs/astyle_(c/h) contain astyle rules to format source and header files according to the project coding guidelines.