首页 > 其他 > 详细

从arduino到32单片机的转型

时间:2017-12-24 14:33:39      阅读:214      评论:0      收藏:0      [点我收藏+]
 1 #include "stm32f10x.h"
 2 #include "led.h"
 3 #include "delay.h"
 4  int main(void)
 5  {
 6 LED_Init();
 7 delay_init();
 8    while(1)
 9   {
10     GPIO_ResetBits(GPIOA,GPIO_Pin_8); //LED0ê?3?μí
11         GPIO_SetBits(GPIOD,GPIO_Pin_2);//LED1ê?3???
12         delay_ms(1000);
13         GPIO_SetBits(GPIOA,GPIO_Pin_8);//LED0ê?3???
14         GPIO_ResetBits(GPIOD,GPIO_Pin_2);//LED1ê?3?μí
15         delay_ms(1000);    
16    }
17  }

 

从arduino到32单片机的转型

原文:http://www.cnblogs.com/pengwenzheng/p/8097817.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!