Skip to content

LuckfoxTECH/luckfox_pico_lvgl_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luckfox

Luckfox Pico LVGL example

中文

  • 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.

Platform Support

Model Operating System LF40-720720-ARK LF40-480480-ARK
Luckfox Pico Ultra Buildroot/Ubuntu Supported Supported
Luckfox Pico Ultra W Buildroot/Ubuntu Supported Supported

Implementation Results

LVGL_main

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.

Buildroot

Compilation

  • 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
    

Running

  • 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
    

Ubuntu

Compilation

  • Set environment variables:
    export GLIBC_COMPILER=< glibc cross-compilation tools and prefix >
    # Such as:export GLIBC_COMPILER=/opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-  
    
    Note: Use absolute paths.
  • Compile with CMake to obtain the executable:
    mkdir build
    cd build
    cmake ..
    make -j
    make install
    

Running

  • 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
    

Detail

RGB Screen

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages