stepper commands
This commit is contained in:
9
640.md
9
640.md
@@ -243,6 +243,15 @@ stepper1.oneStep(dw_Controller.REVERSE, dw_Controller.DOUBLE)
|
|||||||
|
|
||||||
##### step( *steps*, *direction*, *style* )
|
##### step( *steps*, *direction*, *style* )
|
||||||
|
|
||||||
|
If you want to move the stepper motor a set number of steps then you can use this command. This, however, will stop all processing until the motor has moved the specified number of steps.
|
||||||
|
|
||||||
|
``` python
|
||||||
|
stepper1.step(200, dw_Controller.FORWARD, dw_Controller.SINGLE)
|
||||||
|
stepper1.step(200, dw_Controller.REVERSE, dw_Controller.DOUBLE)
|
||||||
|
```
|
||||||
|
|
||||||
|
If you want more control and need to move two or more motors at the same time then you should use the **oneStep** command.
|
||||||
|
|
||||||
## C++
|
## C++
|
||||||
|
|
||||||
### Introduction
|
### Introduction
|
||||||
|
|||||||
Reference in New Issue
Block a user