This commit is contained in:
MQjehovah 2018-03-13 15:11:50 +08:00
parent a2545f3122
commit 041038d5bc

View File

@ -35,7 +35,7 @@ int main(void)
pmotor->en = 1; pmotor->en = 1;
pmotor->step_time = 0; pmotor->step_time = 0;
pmotor->state = acc; pmotor->state = acc;
pmotor->step = 5000; pmotor->step = 2000;
TIM_Cmd(TIM2, ENABLE); //使能TIM2 TIM_Cmd(TIM2, ENABLE); //使能TIM2
while (1) while (1)
{ {