20180313
This commit is contained in:
parent
a2545f3122
commit
041038d5bc
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user