================================================================================
样例使用说明
Sample Description
================================================================================
功能描述:
此样例演示了GPIO输出模式,配置LED引脚(PA1)为数字输出模式,并且每隔250ms翻转一次
LED引脚电平,运行程序,可以看到LED灯以2Hz的频率闪烁。
Function descriptions:
This example demonstrates the GPIO output mode, configuring the LED pin (PA1)
to be in digital output mode, and flipping the LED pin level every 250ms.
Running the program, you can see that the LED light flashes at a frequency
of 2Hz.
================================================================================
测试环境:
测试用板:PY32F002B_STK
MDK版本: 5.28
IAR版本: 9.20
Test environment:
Test board: PY32F002B_STK
MDK Version: 5.28
IAR Version: 9.20
================================================================================
使用步骤:
1. 编译下载程序到MCU,并运行;
2. 可观察到STK板上的LED以2Hz的频率闪烁。
Example execution steps:
1.Compile and download the program to MCU and run it;
2.It can be observed that the LED on the STK board flashes at a frequency of 2Hz.
================================================================================
注意事项:
Notes:
================================================================================