Goutami Bhat
/
DCmotor
DCmotor rotation depends on pin switch
Fork of HelloWorld by
DCmotor.h
- Committer:
- goutami
- Date:
- 2016-11-25
- Revision:
- 2:2187486a8fea
File content as of revision 2:2187486a8fea:
#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); };