motor bipolar fijo en 25p

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Javierdf
Date:
Tue Nov 19 05:08:55 2019 +0000
Commit message:
motor bipolar fijo 25p

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 65c0ac9e35d2 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Nov 19 05:08:55 2019 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+
+BusOut M1(D2,D3,D4,D5);
+char pos[4]={0x05,0x06,0x0A,0x09};
+int i;
+
+int main()
+{
+ int x;
+ 
+      for(x=0;x<=170;x++){
+       
+        M1=pos[i];
+        wait(0.01);
+        i--;
+        if(i==0)
+        i=4;
+        
+    
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 65c0ac9e35d2 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Nov 19 05:08:55 2019 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/e2bfab296f20
\ No newline at end of file