Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
hayama
Date:
Thu Mar 01 14:37:11 2012 +0000
Commit message:
stepper motor test

Changed in this revision

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/main.cpp	Thu Mar 01 14:37:11 2012 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+
+BusOut motorR(p5,  p6,  p7,  p8 );
+BusOut motorL(p11, p12, p13, p14 );
+
+int main() {
+    while(1) {
+        motorR = 1; motorL = 8; 
+        wait(0.01);
+        motorR = 2; motorL = 4;
+        wait(0.01); 
+        motorR = 4; motorL = 2;
+        wait(0.01);
+        motorR = 8; motorL = 1;
+        wait(0.01);
+    }    
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Mar 01 14:37:11 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4c0c40fd0593