標(biāo)題:
我的實(shí)驗(yàn)主函數(shù)代碼
[打印本頁(yè)]
作者:
WANGYAO0521
時(shí)間:
2017-9-14 10:57
標(biāo)題:
我的實(shí)驗(yàn)主函數(shù)代碼
#include"stm32f4xx.h"
#include"beep.h"
#include"delay.h"
#include"led.h"
int main(void)
{
delay_init(168);
LED_Init();
BEEP_Init();
while(1)
{
GPIO_ResetBits(GPIOF,GPIO_Pin_8);
GPIO_ResetBits(GPIOF,GPIO_Pin_9);
delay_ms(500);
GPIO_SetBits(GPIOF,GPIO_Pin_8);
GPIO_SetBits(GPIOF,GPIO_Pin_9);
delay_ms(500);
}
}
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1