forked from Git_test/Git_TEST
初始化项目:红灯闪烁
This commit is contained in:
17
不同颜色LED/APP/Run_Led.c
Normal file
17
不同颜色LED/APP/Run_Led.c
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "stm32f10x.h" // Device header
|
||||
#include "Delay.h"
|
||||
#include "Led_Init.h"
|
||||
|
||||
#define Delay_Time 1000
|
||||
|
||||
void Run_Led()
|
||||
{
|
||||
Led_Init();
|
||||
while(1)
|
||||
{
|
||||
GPIO_SetBits(GPIOB,RED_Led);
|
||||
Delay_ms(Delay_Time);
|
||||
GPIO_ResetBits(GPIOB,RED_Led);
|
||||
Delay_ms(Delay_Time);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user