For Hamza

Dependencies:   StepperMotorUni StepperMotorUni_Hello mbed

Fork of StepperMotorUni_Hello by Tedd OKANO

Files at this revision

API Documentation at this revision

Comitter:
okano
Date:
Sun Jan 19 11:01:48 2014 +0000
Child:
1:80c512ccd0f2
Commit message:
initial release

Changed in this revision

StepperMotorUni.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/StepperMotorUni.lib	Sun Jan 19 11:01:48 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/okano/code/StepperMotorUni/#5d0abdf92786
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Jan 19 11:01:48 2014 +0000
@@ -0,0 +1,26 @@
+/** "Hello" program for StepperMotorUni class library
+ *
+ *  very simple sample of "StepperMotorUni" operation 
+ * 
+ *  version 1.0
+ *  copyright: 2014 Tedd OKANO
+ *  released under the Apache 2 license License
+ */
+
+#include "mbed.h"
+#include "StepperMotorUni.h"
+
+StepperMotorUni motor( p26, p25, p24, p23 );
+
+int main()
+{
+    motor.set_pps( 50 );
+
+    while ( 1 ) {
+        motor.move_steps( 24 );
+        wait( 1 );
+
+        motor.move_steps( -24 );
+        wait( 1 );
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Jan 19 11:01:48 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/824293ae5e43
\ No newline at end of file