标题:
STM32F103ZET6外部中断方式触发的按键
[打印本页]
作者:
514562
时间:
2023-11-25 22:17
标题:
STM32F103ZET6外部中断方式触发的按键
第一次分享代码,不足之处请多包涵
STM32F103ZET6
普中STM32-PZ6806L开发板
#include "stm32f10x.h" // Device header
#include "Delay.h"
#include "LED.h"
#include "Key_EXTI.h"
int main(void)
{
LED_Init();
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
Key_EXTI_Init();
while (1)
{
LED_ON(D1);
Delay_ms(500);
LED_OFF(D1);
Delay_ms(500);
}
}
复制代码
原理图: 无
仿真: 无
代码:
外部中断方式触发的按键.7z
(179.09 KB, 下载次数: 1)
2023-11-26 01:49 上传
点击文件名下载附件
外部中断方式
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1