大学生
最后登录1970-1-1
在线时间 小时
注册时间2014-10-16
|
发表于 2014-10-17 10:03:30
|
显示全部楼层
你这个够直接...
看你是第一帖的份上...
下面这个是PB14的key检测的部分,仅供参考:
if (GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_14) == 0)
{
Delay_us(2000);//20ms
if (GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_14) == 0)
{
while (GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_14) == 0);
//执行你需要的操作
}
} |
|