motor bipolar
Dependencies: mbed
Revision 0:307508ae08e6, committed 2019-11-19
- Comitter:
- Javierdf
- Date:
- Tue Nov 19 05:07:07 2019 +0000
- Commit message:
- motor bipolar
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 Tue Nov 19 05:07:07 2019 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" + +BusOut M1(D0,D1,D2,D3); +char pos[4]={0x5,0x06,0x0A,0x09}; +char i; + +int main() +{ + while (true) { + M1=pos[0]; + wait(0.5); + + M1=pos[1]; + wait(0.5); + + M1=pos[2]; + wait(0.5); + + M1=pos[3]; + wait(0.5); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Nov 19 05:07:07 2019 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/e2bfab296f20 \ No newline at end of file