Goutami Bhat
/
DCmotor
DCmotor rotation depends on pin switch
Fork of HelloWorld by
Diff: DCmotor.h
- Revision:
- 2:2187486a8fea
diff -r 03c191369089 -r 2187486a8fea DCmotor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DCmotor.h Fri Nov 25 16:58:29 2016 +0000 @@ -0,0 +1,15 @@ +#ifndef MBED_Dcmotor_H +#define MBED_Dcmotor_H + +#include "mbed.h" + +class Dcmotor { +public: + DigitalIn pinnm(pin); + Dcmotor(PinName1 pin1,PinName2 pin2); + void Dc(); + +private: + BusOut pins(pin1,pin2); +}; + \ No newline at end of file