Goutami Bhat
/
DCmotor
DCmotor rotation depends on pin switch
Fork of HelloWorld by
Diff: main.cpp
- Revision:
- 2:2187486a8fea
- Parent:
- 0:fb6bbc10ffa0
diff -r 03c191369089 -r 2187486a8fea main.cpp --- a/main.cpp Sun Jan 01 20:57:57 2012 +0000 +++ b/main.cpp Fri Nov 25 16:58:29 2016 +0000 @@ -1,12 +1,9 @@ #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(); +} \ No newline at end of file