如有错误,欢迎指正,谢谢! 目录 一、在keil5上进行编程,实现在同一端口上的8个灯连续闪烁 二、建立工程 参考博客: 一、在keil5上进行编程,实现在同一端口上的8个灯连续闪烁 实验代码如下: #include "stm32f10x.h" GPIO_InitTypeDef GPIO_InitStructure; void delay_ms(uint32_t ms) { uint32_t i_cnt,j_cnt; for(i_cnt=0;i_cnt<3000;i_cnt++); for(j_cnt=0;j_cnt<ms;j_cnt++); } uint32_t i; int m