motor
This commit is contained in:
11
640.md
11
640.md
@@ -61,7 +61,18 @@ Each stepper will be moved forwards and backwards through 200 steps when the tes
|
|||||||
``` bash
|
``` bash
|
||||||
$ python 640steppertest.py
|
$ python 640steppertest.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Import libraries
|
||||||
|
|
||||||
|
Now you know everything works, it's time to write your own scripts. So create a new python script in your editor, within the *darkwater_python_640* directory with a memorable name and add the following lines to import our libraries:
|
||||||
|
|
||||||
|
``` python
|
||||||
|
import time
|
||||||
|
from darkwater_640.darkwater_640 import dw_Controller, dw_Motor
|
||||||
|
```
|
||||||
|
|
||||||
### Drive a motor
|
### Drive a motor
|
||||||
|
|
||||||
### Motor speed
|
### Motor speed
|
||||||
### Servo control
|
### Servo control
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user