Skip to content
On this page

Directory Structure

A complete demo directory structure is as follows:

  1. components/qmsd_ui: Contains UI-related code, which is the target folder to be replaced after downloading the source code from the platform.
  2. main: Main program code:
    • CMakeLists.txt: Build script used to import libraries, locate header files during compilation, add source file directories, and set environment variables (all source files used for compilation should be placed here).

    • partitions_qmsd_ota.csv: Partition definition file for OTA support. Adjust the factory size by modifying this file if needed.

    • partitions_qmsd.csv: Partition definition file.

    • sdkconfig: Configuration file that can be modified in menuconfig. Use the following command to invoke it:

      idf.py menuconfig

ui Directory

  1. res: Resource folder where modifiable fonts, image source files, and other resources can be added.
  2. ui: UI code folder
    • qmsd_api.c: UI API, internal UI navigation, and external API.
    • qmsd_ui_entry.c: UI entry point.
    • screen_main.c: Code for the main interface.

main Directory

  1. qmsd_control.c: Business logic code.
  2. qmsd_ui_cb.c: Callback for monitoring UI events (currently not used).
  3. custom.c: Custom code mainly used for initialization (subsequent platform initialization for serial port and Wi-Fi should be added here).
  4. main.c: Program entry point.