Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Revision 0:65c0ac9e35d2, committed 2019-11-19
- 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