LVGL | Demo实例使用说明

LVGL | Demo实例使用说明


时间:2023年12月10日21:51:17

Demos for LVGL

Add the examples to your projects

  1. Clone this repository: git clone https://github.com/lvgl/lv_demos.git.
  2. The lv_demos directory should be next to the lvgl directory in your project.

Similarly to lv_conf.h there is a configuration file for the examples too. It is called lv_demo_conf.h.

  1. Copy lv_demos/lv_demo_conf_template.h next to lv_demos directory
  2. Rename it to lv_demo_conf.h
  3. Change the first #if 0 to #if 1 to enable the file’s content
  4. Enable or Disable demos

LVGL 演示
将示例添加到您的项目中
克隆此存储库:。git clone https://github.com/lvgl/lv_demos.git
该目录应位于项目中的目录旁边。lv_demoslvgl
同样,示例也有一个配置文件。它被称为 .lv_conf.hlv_demo_conf.h
复制到目录旁边lv_demos/lv_demo_conf_template.hlv_demos
将其重命名为lv_demo_conf.h
将第一个更改为启用文件的内容#if 0#if 1
启用或禁用演示

Demos

Widgets

Shows how the widgets look like out of the box using the built-in material theme.
See in lv_demo_widgets folder.

演示
部件
使用内置材质主题显示小组件的开箱即用外观。
请参阅lv_demo_widgets文件夹中。

Basic demo to show the widgets of LVGL

Music player

The music player demo shows what kind of modern, smartphone-like user interfaces can be created on LVGL. It works the best with display with 480x272 or 272x480 resolution.

See in lv_demo_music folder.

音乐播放器
音乐播放器演示展示了可以在 LVGL 上创建什么样的现代、类似智能手机的用户界面。它最适合 480x272 或 272x480 分辨率的显示器。
请参阅lv_demo_music文件夹中。

Music player demo with LVGL

Keypad and encoder

LVGL allows you to control the widgets with a keypad and/or encoder without a touchpad. This demo shows how to handle buttons, drop-down lists, rollers, sliders, switches, and text inputs without touchpad.
Learn more about the touchpad-less usage of LVGL here.

See in lv_demo_keypad_encoder folder.

键盘和编码器
LVGL 允许您在没有触摸板的情况下使用键盘和/或编码器控制小部件。此演示演示如何在没有触摸板的情况下处理按钮、下拉列表、滚轮、滑块、开关和文本输入。
在此处了解有关 LVGL 的无触摸板用法的更多信息。
请参阅lv_demo_keypad_encoder文件夹中。

Keypad and encoder navigation in LVGL embedded GUI library

Benchmark

A demo to measure the performance of LVGL or to compare different settings.
See in lv_demo_benchmark folder.

基准
用于测量 LVGL 性能或比较不同设置的演示。
请参阅lv_demo_benchmark文件夹中。

Benchmark demo with LVGL embedded GUI library

Stress

A stress test for LVGL. It contains a lot of object creation, deletion, animations, style usage, and so on. It can be used if there is any memory corruption during heavy usage or any memory leaks.
See in lv_demo_stress folder.

压力
LVGL的压力测试。它包含许多对象创建、删除、动画、样式使用等。如果在大量使用期间出现任何内存损坏或任何内存泄漏,则可以使用它。
请参阅lv_demo_stress文件夹中。

Stress tes tfor LVGL

Contributing

For contribution and coding style guidelines, please refer to the file docs/CONTRIBUTNG.md in the main LVGL repo:
https://github.com/lvgl/lvgl

贡献
有关贡献和编码风格指南,请参阅主 LVGL 存储库中的文件 docs/CONTRIBUTNG.md:
https://github.com/lvgl/lvgl

  • 25
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值