dc motor rotations are depending upon the pins given to mbed board
Fork of HelloWorld by
Diff: main.cpp
- Revision:
- 2:d2ddd762da24
- Parent:
- 0:fb6bbc10ffa0
--- a/main.cpp Sun Jan 01 20:57:57 2012 +0000 +++ b/main.cpp Tue Nov 29 12:58:13 2016 +0000 @@ -1,12 +1,10 @@ #include "mbed.h" - -DigitalOut myled(LED1); - +#include "Dcmotor.h" + +Dcmotor Rotation; + int main() { - while(1) { - myled = 1; - wait(0.2); - myled = 0; - wait(0.2); - } + Rotation.Dc(); + Rotation.Dc(); } +