- This example is based on GUI-Guider and lvgl-8.3 for designing the interface.
- This example uses lv_driver-8.1 to drive display and input devices.
- A graphical interface development example specifically for the
Luckfox Pico Ultra
series development boards.
Model | Operating System | LF40-720720-ARK | LF40-480480-ARK |
---|---|---|---|
Luckfox Pico Ultra | Buildroot/Ubuntu | Supported | Supported |
Luckfox Pico Ultra W | Buildroot/Ubuntu | Supported | Supported |
The Ubuntu system currently only supports PAD and GIF interfaces
- WIFI: Configure the SSID and password for Wi-Fi. This button will not be displayed on the Luckfox Pico Ultra.
- PAD: Touchscreen handwriting test.
- MUSIC: Music playback, supports only
.mp3
format. Music files need to be placed in/music
. - GIF: Animated GIF frame rate test.
- OFF: Close the application.
-
Set environment variables:
export LUCKFOX_SDK_PATH=<path_to_luckfox-pico_sdk>
Note: Use absolute paths.
-
Compile with CMake to obtain the executable:
mkdir build cd build cmake .. make -j
- Upload the compiled executable
luckfox_lvgl_demo
to the Luckfox Pico (using adb, ssh, or other methods). - Set executable permissions and run:
chmod a+x luckfox_lvgl_demo ./luckfox_lvgl_demo
- Set environment variables:
Note: Use absolute paths.
export GLIBC_COMPILER=< glibc cross-compilation tools and prefix > # Such as:export GLIBC_COMPILER=/opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
- Compile with CMake to obtain the executable:
mkdir build cd build cmake .. make -j make install
-
Upload the entire folder /install/luckfox_lvgl_demo generated by the compilation to the Luckfox Pico (using adb, ssh, etc.).
Note: Since the runtime depends on dynamic libraries, soft links might be lost during the upload process. It is recommended to compress the folder before uploading.
-
Set executable permissions and run:
cd luckfox_lvgl_demo chmod a+x luckfox_lvgl_demo ./luckfox_lvgl_demo