stm32GPIO點亮led燈實驗程序
單片機源程序如下:
- #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);
- }
- }
復制代碼
所有資料51hei提供下載:
GPIO-LED.7z
(173.76 KB, 下載次數: 11)
2020-5-24 01:03 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
|