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.

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.

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.

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.
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.
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

相关推荐

  1. Eureka的使用说明

    2023-12-12 06:46:03       41 阅读
  2. NatCat使用说明

    2023-12-12 06:46:03       16 阅读

最近更新

  1. TCP协议是安全的吗?

    2023-12-12 06:46:03       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-12 06:46:03       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-12 06:46:03       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-12 06:46:03       20 阅读

热门阅读

  1. Kotlin之for循环的具体使用说明

    2023-12-12 06:46:03       38 阅读
  2. axios的使用

    2023-12-12 06:46:03       37 阅读
  3. PHP和go搭建分布式

    2023-12-12 06:46:03       36 阅读
  4. 06-微服务架构之微服务设计指导书

    2023-12-12 06:46:03       41 阅读
  5. 考研真题C语言

    2023-12-12 06:46:03       37 阅读
  6. Ansible hanlder是啥?Ansible Block是啥?

    2023-12-12 06:46:03       34 阅读
  7. 02.类模板

    2023-12-12 06:46:03       25 阅读
  8. Springboot Redis Lua 分布式限流器

    2023-12-12 06:46:03       47 阅读