![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
drive turrentine mechanisms using h bridge drive chips
Dependencies: mbed
Revision 0:1d94a277dc16, committed 2018-06-06
- Comitter:
- AlexStokoe
- Date:
- Wed Jun 06 13:21:36 2018 +0000
- Commit message:
- drive 1 way for 100ms, reverse for 4 sec, off for 1 sec
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 1d94a277dc16 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jun 06 13:21:36 2018 +0000 @@ -0,0 +1,25 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +DigitalOut myled2(LED2); +DigitalOut en(p25); +DigitalOut dir(p26); + +//DigitalIn dirIn(p21); + +int main() { + + + while(1) { + myled = 1; + en = 1; + dir = 1; + wait_ms(100); + dir = 0; + wait(4); + myled = 0; + en = 0; + wait(1); + + } +}
diff -r 000000000000 -r 1d94a277dc16 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Jun 06 13:21:36 2018 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/5aab5a7997ee \ No newline at end of file