当前位置:网站首页>[lvgl (1)] a brief introduction to lvgl
[lvgl (1)] a brief introduction to lvgl
2022-07-24 06:45:00 【Like warm know cold】
Plan to learn LVGL, So record the learning process .
LVGL The website links :LVGL - Light and Versatile Embedded Graphics LibraryFree and open-source graphics library to create embedded GUI with easy-to-use graphical elements, beautiful visual effects and low memory footprint.
https://lvgl.io/
LVGL Official website

Its code is placed in Github Upper
GitHub - lvgl/lvgl: Powerful and easy-to-use embedded GUI library with many widgets, advanced visual effects (opacity, antialiasing, animations) and low memory requirements (16K RAM, 64K Flash).
https://github.com/lvgl/lvgl We should be good at making use of it Gitee Of “Github Speed up ” function !
Gitee And review the code , So troublesome . It's better to just be Github Accelerator for .
Github Warehouse

incredibly README And Chinese !! It's also very good for my English Xiaobai !

What's the use of English ! Official documents are not in Chinese , It's still hard !!!
LVGL A brief introduction to the conditions of
Official website · file · Forum · service · routine
| requirement | Minimum requirements | It is suggested that |
|---|---|---|
| framework | 16、32、64 Bit microcontroller or microprocessor | |
| The clock | > 16 MHz | > 48 MHz |
| Flash/ROM | > 64 kB | > 180 kB |
| Static RAM | > 16 kB | > 48 kB |
| Draw buffer | > 1 × hor. res. pixels | > 1/10 The screen size |
| compiler | C99 Or update | |
Look at it this way , I want to use STM32C6T6 Your idea will come to naught !!!! So hard!
Think about it ESP32 learn LVGL Well !STM32ZET6 Is that ok ??
Look at the situation , Taoyi development board !
LVGL It does not depend on a specific hardware platform , Any satisfaction LVGL All microcontrollers required by hardware configuration can run .
characteristic :
- Rich and powerful modularity Graphic components : Button (buttons)、 Chart (charts)、 list (lists)、 Slider bar (sliders)、 picture (images) etc.
- Advanced graphics engine : Animation 、 Anti-Aliasing 、 transparency 、 Smooth scrolling 、 Layer blending and other effects
- Support for multiple input device : Touch screen 、 keyboard 、 Encoder 、 Buttons, etc.
- Support Multi display device
- Independent of specific hardware platforms , It can run on any display
- Configuration can be cropped ( Minimum resource occupancy :64 kB Flash,16 kB RAM)
- be based on UTF-8 Multilingual support for , For example, Chinese 、 Japanese 、 Korean 、 Arabic, etc
- Can pass class CSS The way to design 、 Layout graphical interface ( for example :Flexbox、Grid)
- Support operating system 、 External memory 、 And hardware acceleration (LVGL Built in support STM32 DMA2D、SWM341 DMA2D、NXP PXP and VGLite)
- Even if only Single buffer (frame buffer) Under the circumstances , It can also ensure that the rendering is as smooth as silk
- All by C Finished writing , And support C++ call
- Support Micropython Programming , See :LVGL API in Micropython
- Support Simulator Simulation , It can be developed without hardware support
- Rich and detailed routine
- Detailed file as well as API Reference manual , Available online or downloadable as PDF Format
How to get started :
- Use Web page online routines To experience LVGL(3 minute )
- Read the document brief introduction Chapter to get a preliminary understanding LVGL(5 minute )
- Read the document again fast Quick overview Chapter to understand LVGL Basic knowledge of (15 minute )
- Learn how to use Simulator To simulate on the computer LVGL(10 minute )
- Try to practice some routine
- Reference resources Migration guide Try to LVGL Transplant to a development board ,LVGL Some transplanted ones have also been provided engineering
- Read the document carefully The overview Chapter to get more in-depth understanding and familiarity LVGL(2-3 Hours )
- Browse documents Components (Widgets) Chapter to learn how to use them
- If you have any questions, you can go to LVGL Forum put questions to
- Read the document How to contribute to the community Chapter to see if you can help LVGL What does the community do , In order to promote LVGL The continuous improvement of software quality (15 minute )
Is it that simple? ??? It's not easy to see ??? I don't believe it ! impossible !
LVGL Simulator
LVGL And simulators , There is no need to consider the development board first !!!
advantage :
- Independent of hardware - Write code , stay PC Run on and on PC View the results on the display .
- Cross platform - whatever Windows、Linux or OSX PC Can run PC Simulator .
- Portability - The code is portable , This means that you can simply copy it when using embedded hardware .
- Easy verification - Simulators are also very useful for reporting errors , Because it means a common platform for every user . therefore , Reproduce the error in the simulator and use Forum .
For installation, please see LVGL Let's have a look at your documents
STM32
I got confused by the official documents ?

There is nothing here .... How can I fix it ??
ESP32
Anyway ESP32 use Arduino To use , Just look Arduino All right .
because v7.7.1 LVGL contain Kconfig file , therefore LVGL Can be used as ESP-IDF v4 Components .

Arduino
The core LVGL library and the examples are directly available as Arduino libraries.
LVGL Core libraries and examples can be used directly Arduino library .

Pay attention to the version problem , Different versions are different !!
In fact , The kernels of different platforms are the same , It should not be difficult to migrate from this platform to another platform !
1️⃣LVGL Official documents :LVGL Official documents
https://docs.lvgl.io/latest/en/html/index.html2️⃣ On the spot atom LVGL course : The punctual atoms LVGL course
http://www.openedv.com/docs/book-videos/zdyzshipin/4free/littleVGL.html3️⃣ Litchi sect Nano Of LVGL course : Litchi sect Nano Of LVGL course
http://nano.lichee.pro/application/littlevgl.html4️⃣ Bison development board lvgl 6.0 routine : Bison development board lvgl 6.0 routine
https://gitee.com/mzy2364/LittlevGL_Demo5️⃣LVGL Official routine :LVGL Official routine
https://github.com/lvgl/lv_demosOkay , This is my first acquaintance LVGL La ~

Subsequent updates ~
边栏推荐
猜你喜欢
随机推荐
【小型物体测速仪】只有原理,无代码
[small object velocimeter] only principle, no code
JS - calculate the side length and angle of a right triangle
DNS domain name resolution service
类加载的过程(生命周期)详情分析
Jmeter分布式压测
Quick start of go language
LM393 voltage comparator and its typical circuit introduction
kubernetes急速安装
JS - mouse and keyboard configuration and browser forbidden operation
history命令历史记录中加时间
文件系统与日志分析
Today, let's talk about the underlying architecture design of MySQL database. How much do you know?
The character that appears the most times in the JS output string
MySQL批量修改数据表编码及字符集为utf8mb4
API process and code structure
Customize ZABBIX agent RPM package
kubernetes 的Deployment(部署),Service概念,动态扩缩容
创建WPF项目
rsync(一):基本命令和用法









