打印

关于407跑马灯为什么这么做不行?

[复制链接]
180|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
追光少年|  楼主 | 2018-7-28 09:02 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOF,ENABLE);//使能IO口时钟
  
  GPIO_InitTypeDef  *GPIO_InitStructure;      
  GPIO_InitStructure->GPIO_Pin=GPIO_Pin_9|GPIO_Pin_10;
  GPIO_InitStructure->GPIO_Mode=GPIO_Mode_OUT;
  GPIO_InitStructure->GPIO_Speed=GPIO_Speed_100MHz;
  GPIO_InitStructure->GPIO_PuPd=GPIO_PuPd_UP;
  GPIO_InitStructure->GPIO_OType=GPIO_OType_PP;
  
  GPIO_Init(GPIOF,GPIO_InitStructure);
  GPIO_SetBits(GPIOF,GPIO_Pin_9|GPIO_Pin_10);//置1,两个等都灭。

//这种方法下载完只有绿灯闪,红灯一直常亮,按一次复位后才正常???请高手交我,谢谢

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

379

主题

379

帖子

0

粉丝