Skip to content

mej558/lvgl_Raytac_Question

Repository files navigation

.. zephyr:code-sample:: lvgl
   :name: LVGL basic sample
   :relevant-api: display_interface

   Display "Hello World" and a dynamic counter using LVGL.

Overview

This sample application displays "Hello World" in the center of the screen and a counter at the bottom which increments every second. If an input driver is supported, such as the touch panel controller on mimxrt10{50,60,64}_evk boards, "Hello World" is enclosed in a button that changes to the toggled state when touched.

Requirements

Display shield and a board which provides a configuration for Arduino connectors, for example:

or a board with an integrated display:

or a simulated display environment in a :ref:`native_sim <native_sim>` application:

or

or

Building and Running

Example building for :ref:`nrf52840dk_nrf52840`:

.. zephyr-app-commands::
   :zephyr-app: samples/subsys/display/lvgl
   :board: nrf52840dk_nrf52840
   :shield: adafruit_2_8_tft_touch_v2
   :goals: build flash

Example building for :ref:`native_sim <native_sim>`:

.. zephyr-app-commands::
   :zephyr-app: samples/subsys/display/lvgl
   :board: native_sim
   :goals: build run

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

References

[1]https://www.libsdl.org
[2](1, 2) https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/i.mx-applications-processors/i.mx-rt-series/4.3-lcd-panel:RK043FN02H-CT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published