samples/modules/lvgl/demos/README.html · samples/modules/lvgl/demos/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · LVGL

LVGL Demos

실제 display board와 native simulator에서 LVGL UI·성능·memory를 시험합니다.

Official pathsamples/modules/lvgl/demos/README.html
Source filesamples/modules/lvgl/demos/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

480x272 display, pointer input 조건과 네 demo별 build 명령을 보존합니다.

Demos

4

Display

480x272+ ideal

Input

Pointer

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 DC25064A0DD1A19A8FDEB670B889DAD2A11DFAB3033883A6C62B1F8017735558
.. zephyr:code-sample:: lvgl-demos
   :name: LVGL demos
   :relevant-api: display_interface

   Run LVGL built-in demos.

Overview
********

A sample showcasing upstream LVGL demos.

* Music
      The music player demo shows what kind of modern, smartphone-like user interfaces can be created on LVGL.
* Benchmark
      The benchmark demo tests the performance in various cases. For example rectangle, border, shadow, text, image blending, image transformation, blending modes, etc.
* Stress
      A stress test for LVGL. It contains a lot of object creation, deletion, animations, styles usage, and so on. It can be used if there is any memory corruption during heavy usage or any memory leaks.
* Widgets
      Shows how the widgets look like out of the box using the built-in material theme.

More details can be found in `LVGL demos Readme`_.

Requirements
************

* A board with display, ideally with 480x272 resolution or higher.
* A pointer input device: touchpad, mouse, or touch screen capable display, compatible with :dtcompatible:`zephyr,lvgl-pointer-input`.

Note that other input devices types are not demonstrated in these demos, namely keyboards, keypads (:dtcompatible:`zephyr,lvgl-keypad-input`), rotary encoders (:dtcompatible:`zephyr,lvgl-encoder-input`) and hardware buttons (:dtcompatible:`zephyr,lvgl-button-input`).

Building and Running
********************

Example building for :ref:`mimxrt1060_evk`:

.. zephyr-app-commands::
   :zephyr-app: samples/modules/lvgl/demos
   :board: mimxrt1060_evk
   :goals: build flash

These demos can be built for simulated display environment as follows:

.. zephyr-app-commands::
   :zephyr-app: samples/modules/lvgl/demos
   :host-os: unix
   :board: native_sim
   :gen-args: -DCONFIG_LV_Z_DEMO_MUSIC=y
   :goals: run
   :compact:

.. zephyr-app-commands::
   :zephyr-app: samples/modules/lvgl/demos
   :host-os: unix
   :board: native_sim
   :gen-args: -DCONFIG_LV_Z_DEMO_BENCHMARK=y
   :goals: run
   :compact:

.. zephyr-app-commands::
   :zephyr-app: samples/modules/lvgl/demos
   :host-os: unix
   :board: native_sim
   :gen-args: -DCONFIG_LV_Z_DEMO_STRESS=y
   :goals: run
   :compact:

.. zephyr-app-commands::
   :zephyr-app: samples/modules/lvgl/demos
   :host-os: unix
   :board: native_sim
   :gen-args: -DCONFIG_LV_Z_DEMO_WIDGETS=y
   :goals: run
   :compact:

Alternatively, if building from a 64-bit host machine, the previous target
board argument may also be replaced by ``native_sim/native/64``.

References
**********

.. _LVGL demos Readme: https://github.com/zephyrproject-rtos/lvgl/blob/zephyr/demos/README.md

Part 3

한국어 전문 번역

개요

Upstream LVGL에 내장된 demo를 보여주는 sample입니다.

  • Music: LVGL로 만들 수 있는 현대적인 smartphone 형태의 user interface를 보여주는 music player demo입니다.
  • Benchmark: rectangle, border, shadow, text, image blending, image transformation, blending mode 등 여러 경우의 성능을 시험합니다.
  • Stress: 많은 object 생성·삭제, animation과 style 사용 등을 수행하는 LVGL stress test입니다. Heavy usage 중 memory corruption이나 memory leak이 있는지 확인하는 데 사용할 수 있습니다.
  • Widgets: Built-in material theme에서 widget이 기본 상태로 어떻게 보이는지 보여줍니다.

요구 사항

  • Display가 있는 board. 480x272 이상의 resolution이 이상적입니다.
  • Touchpad, mouse 또는 touch-screen display 같은 pointer input device. zephyr,lvgl-pointer-input compatible이어야 합니다.

Keyboard, zephyr,lvgl-keypad-input keypad, zephyr,lvgl-encoder-input rotary encoder, zephyr,lvgl-button-input hardware button 같은 다른 input device type은 이 demo에서 다루지 않습니다.

Build와 실행

다음은 mimxrt1060_evk용 build 예입니다.

# From the root of the zephyr repository
west build -b mimxrt1060_evk samples/modules/lvgl/demos
west flash

Simulated display 환경에서는 실행할 demo를 각각의 Kconfig option으로 선택해 다음과 같이 build할 수 있습니다.

west build -b native_sim samples/modules/lvgl/demos -- -DCONFIG_LV_Z_DEMO_MUSIC=y
west build -t run
west build -b native_sim samples/modules/lvgl/demos -- -DCONFIG_LV_Z_DEMO_BENCHMARK=y
west build -t run
west build -b native_sim samples/modules/lvgl/demos -- -DCONFIG_LV_Z_DEMO_STRESS=y
west build -t run
west build -b native_sim samples/modules/lvgl/demos -- -DCONFIG_LV_Z_DEMO_WIDGETS=y
west build -t run

64-bit host machine에서 build한다면 위 target board argument native_sim을 native_sim/native/64로 바꿀 수도 있습니다.

참고 자료

LVGL demos README에서 각 demo의 세부 내용을 확인할 수 있습니다.

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.