研究生
最后登录1970-1-1
在线时间 小时
注册时间2015-7-28
|
大神们帮帮忙啊!!!!!试了好久都没搞出来
case E_BUTTON9: //LED3
if(nine_button == S_OFF)
{
TIM3->ARR=1999;
LCD_DispStr(0,200, (uint8_t *)" 360RPM ", BLACK);
nine_button = S_ON;
}
else if (nine_button == S_ON)
{
TIM3->ARR=3999;
LCD_DispStr(0,200, (uint8_t *)" 180RPM ", BLACK);
nine_button = S_OFF;
}
else if(nine_button == S_OFF)
{
TIM3->ARR=999;
LCD_DispStr(0,200, (uint8_t *)" 90RPM ", BLACK);
nine_button = S_OFF;
}
even = E_NULL;
break;
}
这个程序前面两个转速可以来回调,可是怎么都调不到第三个转速!!!!! 如何设计可以让这三个转速来回调啊?????????????????????????? |
|