From 81df8b75c4f0a5cdf5ae96bb07b7de299e14d6e1 Mon Sep 17 00:00:00 2001 From: shrkey Date: Tue, 4 Oct 2016 22:55:26 +0100 Subject: [PATCH] new instructions --- 640.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/640.md b/640.md index 302a13b..4f0f85d 100644 --- a/640.md +++ b/640.md @@ -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