Table of Contents | ||
---|---|---|
|
Info |
---|
This is an add-on product that installs on top of the Linux BSP for the NXP i.MX RT board. It must be purchased separately from the Linux BSP product. |
1. Overview
This application note explains how to run the LVGL GUI in uClinux running on the i.MX RT devices. LVGL is the most popular free and open-source embedded graphics library to create powerful UIs for any MCU, MPU and display type. Refer to https://lvgl.io/ for detailed information on the LVGL GUI.
...
Code Block |
---|
/ # ls -al /dev/fb0
crw------- 1 root root 29, 0 Jan 1 00:00 /dev/fb0
/ # cat /sys/class/graphics/fb0/name
mxs-lcdif
/ #
|
Support for the touch screen is provided by the ft5x0x_ts
driver (drivers/input/touchscreen/ft5x46_ts.c
). The input is available via the /dev/input/event0
device node:
Code Block |
---|
/ # ls -al /dev/input/event0
crw------- 1 root root 13, 64 Jan 1 00:00 /dev/input/event0
/ # cat /sys/class/input/event0/device/name
ft5x0x_ts
/ #
|
Both the Linux frame buffer and the LVGL internal rendering buffers are allocated in the on-chip SDRAM. This supports a 25 FPS, as measured with ebike
and other standard LVGL demos.
...
From the Linux shell, type the
ebike_gui_demo
command to run theebike
demo:Code Block / # ebike_gui_demo
Click to the padlock icon in the bottom right corner of the screen to switch to the Unlock Your Bike group.
Click 4 any digits and then
v
. Make sure the correct PIN-code in printed out to the Linux shell terminal:Code Block / # ebike_gui_demo entered pin: 4 7 1 2
Click to the bike icon to switch back to the Driving Information group.
Press and hold the
SW8
button which resides on the opposite side of the i.MXR10XX-EVKB board to LCD. Make sure that the Speed, Trip, Odometer and other values are increasing on the corresponding widgets on the LCD. If release theSW8
button the Speed reading is decreasing:
4. Building LVGL
4.1.
...
Secure Download Area
Emcraft support the LVGL port to the i.MX RT as a paid add-on.
Once you have purchased the add-on from Emcraft, you can obtain the LVGL patch from the following location:for
For the imxrt1050 BSP (release 3.0.4):
https://www.emcraft.com/imxrtaddon/imxrt1050/lvgl
The page is protected as follows:
Login: CONTACT EMCRAFT
Password: CONTACT EMCRAFT
...
For the imxrt1050 BSP (release 3.1.0):
https://www.emcraft.com/imxrtaddon/imxrt1050-3.1.0/lvgl
The page is protected as follows:
Login: CONTACT EMCRAFT
Password: CONTACT EMCRAFT
...
For the imxrt1060 BSP (release 3.1.0):
https://www.emcraft.com/imxrtaddon/imxrt1060-3.1.0/lvgl
The page is protected as follows:
Login: CONTACT EMCRAFT
Password: CONTACT EMCRAFT
for For the imxrt1170 BSP:
https://www.emcraft.com/imxrtaddon/imxrt1170/lvgl
The page is protected as follows:
Login: CONTACT EMCRAFT
Password: CONTACT EMCRAFT
4.2. Building LVGL
Step through the following procedure to apply the LVGL add-on and build the LVGL binaries:
...