deepakkumar telgar
/
DC_Motor
DC_Motor_rotation using switch
Fork of HelloWorld by
Diff: main.cpp
- Revision:
- 2:1e23df59fc31
- Parent:
- 0:fb6bbc10ffa0
--- a/main.cpp Sun Jan 01 20:57:57 2012 +0000 +++ b/main.cpp Thu Dec 01 11:50:12 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(); } +