Basic Example Project
This is a basic example project that demonstrates the fundamental usage of the SDK.
Features
LED blinking control
Button interrupt handling
Basic timer usage
Quick Start
Hardware Requirements
One development board
USB cable
Debugger (optional)
Build Steps
Open the project files
Configure the build options
Compile the project
Download to the development board
Running Result
After the program runs, the LED will blink at the configured frequency, and pressing the button will trigger an interrupt handler.
Code Structure
basic_example/
├── src/
│ ├── main.c # Main program
│ ├── led.c # LED control
│ └── key.c # Button handling
├── inc/
│ ├── led.h
│ └── key.h
└── README.md
Notes
Ensure hardware connections are correct
Check that the power supply voltage is normal
Monitor the serial output information
Troubleshooting
If issues occur, please check:
Hardware connections
Power supply
Program configuration
Build options