STM32F407学习笔记——GPIO_按键控制LED亮灭

#include <stm32f4xx.h> #include "stm32f4xx_conf.h" #include "delay.h" GPIO_TypeDef* io_led=GPIOC;//定义一个指向结构体GPIO_TypeDef的io_led const u16 pin_led=GPIO_Pin_1;//引脚 GPIO_TypeDef* io_key=GPIOC; const u1
相关文章
相关标签/搜索