dc motor rotations are depending upon the pins given to mbed board

Dependencies:   mbed

Fork of HelloWorld by Simon Ford

DC.h

Committer:
KIRAN_PALTANKAR
Date:
2016-11-29
Revision:
2:d2ddd762da24

File content as of revision 2:d2ddd762da24:

#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);
};