11

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
zjyporridge
Date:
Tue May 31 00:25:12 2016 +0000
Commit message:
?

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
diff -r 000000000000 -r f2fdcf9d7b8b main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue May 31 00:25:12 2016 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+
+DigitalOut dir(D7);
+DigitalOut steps(D8);
+
+int main() {
+    int nsteps;
+    int ndir;
+    ndir = 1;
+    dir = ndir;
+    nsteps=6;
+    for(int i=0;i<nsteps; i++)
+    {
+        int t=0.0010;
+        steps = 1;
+        wait(0.000001); 
+        steps = 0;
+        wait(0.0016);
+        t+=0.005;
+    }
+}
diff -r 000000000000 -r f2fdcf9d7b8b mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue May 31 00:25:12 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/aae6fcc7d9bb
\ No newline at end of file