IMPORTANT NOTE The next major version (v9.0.0) is developed in the master branch. The last stable version is available in the release/v8.3 branch.
English | 䏿–‡ | Português do Brasil
Â
ÂÂ Website | Â Docs | Â Forum | Â Services | Â Demos | Â SquareLine Studio
LVGL is the most popular free and open source embedded graphics library to create beautiful UIs for any MCU, MPU and display type. It's supported by industry leading vendors and projects like  Arm, STM32, NXP, Espressif, Nuvoton, Arduino, RT-Thread, Zephyr, NuttX, Adafruit and many more.
It has all the features to create modern and beautiful GUIs: 30+ built-in widgets, a powerful style system, web inspired layout managers, and a typography system supporting many languages. To integrate LVGL into your platform, all you need is at least 32kB RAM and 128 kB flash, a C compiler, a frame buffer, and at least an 1/10 screen sized buffer for rendering.
SquareLine Studio is a professional yet affordable drag and drop UI editor for LVGL. It runs on Windows, Linux and MacOS too and you can try it out even without registering to the website.
Our team is ready to help you with UI design, implementation and consulting services. Feel free to contact us if you need some support during the development of your next UI.
-
Fully portable LVGL is a C (C++ compatible) library with no external dependencies. It can be compiled to any microcontrollers or microprocessors, with any (RT)OS to drive monochrome, ePaper, OLED or TFT displays, or even monitors.
-
Free LVGL is distributed under the MIT licence, so you can easily use it in commercial projects too.
-
Minimal requirements C99 or newer compiler, minimum 32kB RAM and 128 kB flash, a frame buffer, and at least an 1/10 screen sized buffer for rendering. OS, External memory and GPU are supported but not required.
-
30+ built-in widgets  Button, Label, Slider, Chart, Keyboard, Meter, Arc, Table and many more.
-
Flexible style system  ~100 style properties (e.g. radius, opacity, gradient, border, shadow, etc.) allow you to customize any part of the widgets (e.g. background, scrollbar, indicator, knob, etc) in any state (normal, pressed, check, focused, etc).
-
Powerful layout engine Flexbox and Grid-like layouts to automatically size and position the widgets in a responsive way
-
Advanced text features Texts are rendered with UTF-8 encoding supporting CJK, Thai, Hindi, Arabic, Persian writing systems. Word wrapping, kerning, text scrolling, sub-pixel rendering, Pinyin-IME Chinese input, Emojis in texts are also available out of the box.
-
Fast rendering engine Supporting animations, anti-aliasing, opacity, smooth scrolling, blending modes, rounded rectangles, image transformation, etc Â
-
Various Input Devices Supporting mouse, touchpad, Keypad, keyboard, external buttons, encoder.
-
Multiple display support Use one MCU to drive more screens.
-
Micropython binding Exposes LVGL API in Micropython
-
No custom build system LVGL is distributed as an organized collection of C files that can be easily integrated into any build system. Support for Make and CMake is included out of the box.
-
Develop on PC Use the same UI code on PC and embedded hardware.
-
Convert the UI to HTML You can compile the C UI code to a single HTML file with our Emscripten port.
-
Detailed docs with 100+ simple examples
-
SquareLine Studio A professional and easy-to-use UI editor software to speed up and simplify the UI development. Â
-
Services User interface design, implementation and consulting services to make UI development simpler and faster
This list will guide you to get started with LVGL step-by-step.
- Check the Online demos to see LVGL in action (3 minutes)
- Read the Introduction page of the documentation (5 minutes)
- Get familiar with the basics on the Quick overview page (15 minutes)
- Set up a Simulator (10 minutes)
- Try out some Examples
- Port LVGL to a board. See the Porting guide or check the ready to use Projects
- Read the Overview page to get a better understanding of the library (2-3 hours)
- Check the documentation of the Widgets to see their features and usage
- If you have questions go to the Forum
- Read the Contributing guide to see how you can help to improve LVGL (15 minutes)
- Download and try out SquareLine Studio.
- Contact us for Services.
LVGL is available as:
- Arduino library
- PlatformIO package
- Zephyr library
- ESP32 component
- NXP MCUXpresso component
- NuttX library
- RT-Thread RTOS
- CMSIS-Pack
For more examples see the examples folder.
lv_obj_t * btn = lv_btn_create(lv_scr_act()); Â Â Â Â Â Â Â Â Â /*Add a button to the current screen*/
lv_obj_set_pos(btn, 10, 10); Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â /*Set its position*/
lv_obj_set_size(btn, 100, 50); Â Â Â Â Â Â Â Â Â
8000
        /*Set its size*/
lv_obj_add_event_cb(btn, btn_event_cb, LV_EVENT_CLICKED, NULL); /*Assign a callback to the button*/
lv_obj_t * label = lv_label_create(btn); Â Â Â Â Â Â Â Â Â Â Â Â /*Add a label to the button*/
lv_label_set_text(label, "Button"); Â Â Â Â Â Â Â Â Â Â Â Â Â Â /*Set the labels text*/
lv_obj_center(label); Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â /*Align the label to the center*/
...
void btn_event_cb(lv_event_t * e)
{
 printf("Clicked\n");
}
Learn more about Micropython.
def btn_event_cb(e):
 print("Clicked")
# Create a Button and a Label
btn = lv.btn(lv.scr_act())
btn.set_pos(10, 10)
btn.set_size(100, 50)
btn.add_event_cb(btn_event_cb, lv.EVENT.CLICKED, None)
label = lv.label(btn)
label.set_text("Button")
label.center()
LVGL Kft was established to provide a solid background for LVGL library. We offer several type of services to help you in UI development:
- Graphics design
- UI implementation
- Consulting/Support
For more information see https://lvgl.io/services Feel free to contact us if you have any questions.
LVGL is an open project and contribution is very welcome. There are many ways to contribute from simply speaking about your project, through writing examples, improving the documentation, fixing bugs to hosting your own project under the LVGL organization.
For a detailed description of contribution opportunities visit the Contributing section of the documentation.