標(biāo)題:
stm32 GPIO點(diǎn)亮led燈程序
[打印本頁(yè)]
作者:
324334
時(shí)間:
2020-5-23 15:16
標(biāo)題:
stm32 GPIO點(diǎn)亮led燈程序
stm32GPIO點(diǎn)亮led燈實(shí)驗(yàn)程序
單片機(jī)源程序如下:
#include "stm32f10x.h"
#include "led.h"
void Delay(uint32_t count)
{
for(;count!=0;count--);
}
int main(void)
{
LED_GPIO_B();
while(1)
{
GPIO_SetBits(GPIOB,GPIO_Pin_0);
Delay(0xFFFF7);
GPIO_ResetBits(GPIOB,GPIO_Pin_0);
Delay(0xFFFF7);
}
}
復(fù)制代碼
所有資料51hei提供下載:
GPIO-LED.7z
(173.76 KB, 下載次數(shù): 11)
2020-5-24 01:03 上傳
點(diǎn)擊文件名下載附件
下載積分: 黑幣 -5
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1