![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
working
main.cpp
- Committer:
- m175694
- Date:
- 2014-10-09
- Revision:
- 0:833afd26d33b
- Child:
- 1:214c872ef845
File content as of revision 0:833afd26d33b:
#include "mbed.h" #include "Motor.h" DigitalIn sw2(p16); int main() { Motor m(p26,p29,p30); while(1) { if (sw2) { m.speed(0.3); wait(.15); m.speed(0.0); wait(1.5); m.speed(-0.3); wait(.15); m.speed(0.0); wait(1.5); } } }