Contributing to LVGL
Thank you for considering contributing to LVGL. If you have some spare time to spend with programming you will certainly find a way to helpimproving LVGL. Do not afraid to take the first step! Everybody is welcome independently from gender, age, color, location, or skill level. So don’t be shy, pick a point from the list below that you are interested in, and let’s go! :rocket:
- How to send a pull request?
- Help others in the Forum
- Improve or translate the documentation
- Write a blog post
- Report or fix bugs
- Suggest or implement new features
There are many ways to join the community. If you have some time to work with us you will surely find something that fits you! You can:
- Help others in the Forum.
- Inspire people by speaking about your project in My project category in the Forum.
- Improve and/or translate the documentation. Go to the Documentation repository to learn more.
- Write a blog post about your experiences. See how to do it in the Blog repository
- Report and/or fix bugs in GitHub’s issue tracker
- Help the development. Check the Open issues especially the ones with Help wanted label and tell your ideas about a topic or implement a feature.
We have some simple rules:
- Be kind and friendly.
- Speak about one thing in one issue/topic.
- Give feedback and close the issue or mark the topic as solved if your question is answered.
- Tell what you experience or expect. “The button is not working” is not enough info to get help.
- Use Markdown to format your post.
- We use the Forum to ask and answer questions and GitHub’s issue tracker for development-related discussion.
- If possible send an absolute minimal code example in order to reproduce the issue
How to send a pull request?
Merging new code into LVGL, documentation, blog, and examples happens via Pull requests. If you are still not familiar with Pull Requests (PR for short) here is a short guide. It’s about the
lvgl repository but it works the same way for other repositories too.
- Fork the lvgl repository. To do this click the “Fork” button in the top right corner. It will “copy” the
lvglrepository to your GitHub account (
- Clone the forked repository and add your changes
- Create a PR on GitHub from the page of your
https://github.com/your_name/lvgl) by hitting the “New pull request” button
- Set the base branch. It means where you want to merge your update. Fixes go to
master, new features to feature branch.
- Describe what is in the update. An example code is welcome if applicable.
- Update your
lvglbranch with new commits. They will appear in the PR too.
- For non-trivial fixes and features it’s better open an issue first to discuss the details.
- Maybe your fix or update won’t be perfect at first. Don’t be afraid, just improve it and push the new commits. The PR will be updated accordingly.
- If your update needs some extra work it’s okay to say: “I’m busy now and I will improve it soon” or “Sorry, I don’t have time to improve it, I hope it helps in this form too”. So it’s better to say don’t have time to continue than saying nothing.
- Please read and follow this guide about the coding style
Help others in the Forum
It’s a great way to contribute to the library if you already use it. Just go to https://forum.lvgl.io/ a register (Google and GitHub login also works). Log in, read the titles and if you are already familiar with a topic, don’t be shy, and write your suggestion.
Improve or translate the documentation
If you would like to contribute to LVGL the documentation is the best place to start.
Fix typos, add missing parts
If you find a typo, an obscure sentence or something which is not explained well enough in the English documentation click the “Edit on GitHub” button in the top right corner and fix the issue by sending a Pull Request.
Translate the documentation
If you have time and interest you can translate the documentation to your native language or any language you speak well. You can join others to work on an already existing language or you can start a new one.
To get started you need to:
- register at Zanata which is an online translation platform.
- comment to this post
- tell your username at Zanata and your selected language(s) to get permission the edit the translations
Note that a translation will be added to the documentation only if the following parts are translated:
Write a blog post
Have you ported LVGL to a new platform or created a fancy GUI? Do you know a great trick? You can share your knowledge on LVGL’s blog! It’s super easy to add your own post:
- Fork and clone the blog repository
- Add your post in Markdown to the
- Store the images and other resources in a dedicated folder in
- Create a Pull Request
Report or fix bugs
For simple bugfixes (typos, missing error handling, fixing a warning) it’s fine to send a Pull request directly. However, for more complex bugs it’s better to open an issue first. In the issue, you should describe how to reproduce the bug and add the minimal code snippet.
Suggest or implement new features
If you have a good idea don’t hesitate to share with us. It’s even better if you have time to deal with its implementation. Don’t be afraid if you still don’t know LVGL well enough. We will help you to get started.
To share your ideas use Feature request category of the forum.
If you are ready to get involved into the development of this faetures feel free to pen a new issue for it on GitHub.
During the implementation don’t forget the Code style guide.
If you implemented a new feature it’s important to record it in the documentation and if applicable create an example for it:
- Go to the docs repository and update the relevant part of the English documentation.
- Go to the examples repository and add a new file about the new feature in the related directory.
I hope you have taken a liking to contribute to LVGL. A helpful and friendly community is waiting for you! :)