The latest development version of this page may be more current than this released 2.7.5 version.

LittlevGL Basic Sample

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 simulated display environment in a native Posix application:

or

or

Building and Running

Note

When deferred logging is enabled you will likely need to increase CONFIG_LOG_STRDUP_BUF_COUNT and/or CONFIG_LOG_STRDUP_MAX_STRING to make sure no messages are lost or truncated.

Example building for nRF52840 DK:

# From the root of the zephyr repository
west build -b nrf52840dk_nrf52840 samples/display/lvgl -- -DSHIELD=adafruit_2_8_tft_touch_v2
west flash

Example building for Native POSIX execution (native_posix):

# From the root of the zephyr repository
west build -b native_posix samples/display/lvgl
west flash

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