stepper commands

This commit is contained in:
shrkey
2016-09-26 00:29:24 +01:00
parent 62b75b4f4f
commit 43cfe622b5

9
640.md
View File

@@ -243,6 +243,15 @@ stepper1.oneStep(dw_Controller.REVERSE, dw_Controller.DOUBLE)
##### 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++
### Introduction