escape docs update

This commit is contained in:
shrkey
2016-10-04 23:19:55 +01:00
parent 81df8b75c4
commit 17fed19007
2 changed files with 19 additions and 5 deletions

2
640.md
View File

@@ -105,7 +105,7 @@ Now you know everything works, it's time to write your own scripts. So create a
``` python ``` python
import time import time
from darkwater_640.darkwater_640 import dw_Controller, dw_Motor, dw_Servo from darkwater_640 import dw_Controller, dw_Motor, dw_Servo, dw_Stepper
``` ```
#### Create a controller #### Create a controller

View File

@@ -21,14 +21,28 @@ The Python libraries for the ESCAPE board and some example scripts are available
$ git clone https://github.com/darkwaterfoundation/darkwater_python_escape.git $ git clone https://github.com/darkwaterfoundation/darkwater_python_escape.git
``` ```
### Example scripts Next you need to navigate into the new directory so enter:
Now that you have downloaded the ESCAPE libraries you should have a new directory called *darkwater_python_escape, so let's move into that directory
``` bash ``` bash
$ cd ./darkwater_python_escape $ cd ./darkwater_python_escape
``` ```
And once in there we can install the libraries with:
``` bash
$ sudo python setup.py install
```
### Example scripts
Once everything is 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 If you list the files in this directory, you should see a few test scripts
``` bash ``` bash
@@ -57,7 +71,7 @@ Now you know everything works, it's time to write your own scripts. So create a
``` python ``` python
import time import time
from darkwater_escape.darkwater_escape import dw_Controller, dw_Motor, dw_Servo from darkwater_escape import dw_Controller, dw_Motor, dw_Servo
``` ```
#### Create a controller #### Create a controller