new instructions

This commit is contained in:
shrkey
2016-10-04 22:55:26 +01:00
parent 20cf7bb758
commit 81df8b75c4

22
640.md
View File

@@ -45,14 +45,28 @@ The Python libraries for the 640 board and some example scripts are available vi
$ git clone https://github.com/darkwaterfoundation/darkwater_python_640.git
```
### Example scripts
Now that you have downloaded the 640 libraries you should have a new directory called *darkwater_python_640, so let's move into that directory
Next you need to navigate into the new directory so enter:
``` bash
$ cd ./darkwater_python_640
```
And once in there we can install the libraries with:
``` bash
$ sudo python setup.py install
```
### Example scripts
Once you are installed we can have a play with the example scripts included in the download. As well as being useful to test each part of your board, they are also handy as a starting point when writing your own scrips.
Let's move into the examples directory and take a look at what is there.
``` bash
$ cd ./examples
```
If you list the files in this directory, you should see a few test scripts
``` bash
@@ -79,7 +93,7 @@ $ python 640servotest.py
This script divides the 6 motor ports into 3 stepper motor ports. Motor 1 and 2 will be stepper 1, motor 3 and 4 will be stepper 2 and motor 5 and 6 will be stepper 3.
Each stepper will be moved forwards and backwards through 200 steps when the test script is run:
Each stepper will be moved forwards and backwards through 400 steps when the test script is run:
``` bash
$ python 640steppertest.py