[Tool] Step By Step Guider of using GUI-Guider

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[Tool] Step By Step Guider of using GUI-Guider

[Tool] Step By Step Guider of using GUI-Guider

As a free and open-source graphics library, LVGL provides great convenience for related series of chips in creating animations, building advanced graphics and building various blocks. LVGL has been integrated into the MCUXpresso SDK package, which can be imported either through the SDK download or directly in the GUI Guider.

GUI-Guider is a ready-to-use GUI from NXP. On the basis of being free for NXP equipment, it has a series of advantages such as convenient operation, automatic programming, Chinese and English interface and input.

The following takes the LPC54S018 development board as an example, by creating a simple UI interface, to let everyone familiar with its basic operation process and usage.

  1. Create new project

Select V8 lvgl version, LPC54S018 development board, EmptyUI, set the name and path, click Finish

ZhangJennie_0-1657881360732.png
Fig.1
  1. Set the overall background

Drag Widget Tab to the GUI Editor, and resize it to full screen size.

ZhangJennie_1-1657881411556.png

Fig.2

  1. Add time display and to-do functions.

1) Change the Tab Content1 name to Clock in the red box on the right.

ZhangJennie_2-1657881428780.png

Fig.3

2) Drag aclock into editor, adjust its size and position, and set the time according to the red box in Figure 4.

ZhangJennie_3-1657881445779.png

Fig.4

3) Drag the dclock clock into the editor, adjust its size and position, and set the time according to the red box in Figure 5.

ZhangJennie_4-1657881470427.png

Fig.5

4) Drag the checkbox into editor, adjust its size and position, and edit its content according to Figure 6.

ZhangJennie_5-1657881488109.png

Fig.6

  1. In the second Tab content, add a simple counting function and set the progress bar to interact with it.

1) Add a background. Click Import to import the background image, in the widget, drag the image into the editor, set the size and position, select the imported image in the image path and set its transparency, as shown in Figure 7.

ZhangJennie_6-1657881502044.png

Fig.7

2) Add count value, progress bar and button. Figures 8, 9 and 10.

In Figure 8, when adding a progress bar, set the starting value in the second step. The range value of the progress bar is set by lv_bar_set_range(guider_ui.screen_progress_bar, 0, 100) which can be added to a key event, executing on every click. Therefore, it is recommended to add this code to the subsequent export file costomer.c, and set it once during initialization.

ZhangJennie_7-1657881529079.png

Fig.8

ZhangJennie_8-1657881545523.png

Fig.9

ZhangJennie_9-1657881560952.png

Fig.10

3) Add some explanatory text to the progress bar. The operation steps are shown in Figure 11.

ZhangJennie_10-1657881575852.png

Fig.11

4) Create an event in the corresponding button, select Customer Code, write the corresponding code, and complete the interaction. Take the ADD button as an example, as shown in Figure 12.

ZhangJennie_11-1657881594792.png

Fig.12

  1. In the Tab third content, 3D animation effect is shown.

1) Set the 3D picture. Select 3Dimg, drag it into the editor, set the image in the image path, and then select the rotation center and rotation angle, as shown in Figure 13.

ZhangJennie_12-1657881611858.png

Fig.13

2) Set the display switch. Turn on the switch to display the 3D picture, and when the switch is turned off, the picture disappears. Such as Figure 14.

ZhangJennie_13-1657881637502.png

Fig.14

  1. In the fourth Tab content, add “help”.

1) Add logo. Add img, import image to set transparency.

ZhangJennie_14-1657881656346.png

Fig.15

2) List the first three modules. Drag the list Widget into the editor, create new lines and modify pictures and texts.

After completion, generate the code as shown in Figure 16. The results can be directly displayed by simulation or imported into the development board. Figure 17 shows the simulator and selectable target. The simulation results are shown in Figure 18.

There are two ways to download the design to the development board. One is to select the available IDE in Figure 17 and download it directly through GUI Guider. The second is to export the source files first, replace them one by one in the relevant SDK demo code, build with application code in IDE and download/debug with IDE debugger.

ZhangJennie_15-1657881680838.png

Fig.16

ZhangJennie_16-1657881694043.png

Fig.17

ZhangJennie_17-1657881709347.png

Fig.18

Video Class : https://www.youtube.com/watch?v=QM52Nu16zKQ

 

No ratings
Version history
Last update:
‎07-15-2022 03:45 AM
Updated by: