Directory Structure
A complete demo directory structure is as follows:
- components/qmsd_ui: Contains UI-related code, which is the target folder to be replaced after downloading the source code from the platform.
- 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
- res: Resource folder where modifiable fonts, image source files, and other resources can be added.
- 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
- qmsd_control.c: Business logic code.
- qmsd_ui_cb.c: Callback for monitoring UI events (currently not used).
- custom.c: Custom code mainly used for initialization (subsequent platform initialization for serial port and Wi-Fi should be added here).
- main.c: Program entry point.
8MS