中级会员
 
- 积分
- 208
- 金钱
- 208
- 注册时间
- 2013-9-23
- 在线时间
- 24 小时
|
3金钱
//LED Control
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_12;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_10MHz;
GPIO_Init(GPIOB ,&GPIO_InitStructure);
GPIO_SetBits(GPIOB,GPIO_Pin_12);
//LED Control
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_13;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_10MHz;
GPIO_Init(GPIOB ,&GPIO_InitStructure);
GPIO_ResetBits(GPIOB,GPIO_Pin_13);
//LED Control
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_14;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_10MHz;
GPIO_Init(GPIOB ,&GPIO_InitStructure);
GPIO_ResetBits(GPIOB,GPIO_Pin_14);
代码如上图:PB13,PB14都可以操作,不知道为啥PB12就是操作不了呢?
|
|