Chetan patil
/
motor
motor running
main.cpp
- Committer:
- chetanpatil
- Date:
- 2015-11-25
- Revision:
- 0:9f382047c8bd
File content as of revision 0:9f382047c8bd:
#include "mbed.h" BusOut e(p13.p14); BusOut s1(p8); BusOut s2(p9); //BusIn w(p5,p6); int main() { while(1) { e=1; s1=1; s2=2; wait(1); /*if(w==0) { e=1; s1=0; wait(0.030); s2=0; wait(0.030); } if(w==1) { e=1; s1=1; wait(0.020); s2=0; wait(0.020); } if(w==2) { e=1; s1=1; wait(0.5); s2=0; wait(0.5); } if(w==3) { e=1; s1=1; wait(1); s2=0; wait(1); } else { e=1; s1=1; wait(0.03); s1=0; wait(0.03); }*/ } }