From a94fef9426955a54d1ad7047c82c34183218c3d6 Mon Sep 17 00:00:00 2001 From: shrkey Date: Sat, 24 Sep 2016 22:25:07 +0100 Subject: [PATCH] motor --- 640.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/640.md b/640.md index f78bb8b..55a2ff5 100644 --- a/640.md +++ b/640.md @@ -61,7 +61,18 @@ Each stepper will be moved forwards and backwards through 200 steps when the tes ``` bash $ 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 + ### Motor speed ### Servo control