Dependencies:   mbed

Motor.h

Committer:
vcazan
Date:
2010-01-17
Revision:
0:552b174f8c2f

File content as of revision 0:552b174f8c2f:

#ifndef MBED_MOTOR_H
#define MBED_MOTOR_H

#include "mbed.h"

class Motor {

    public:

        Motor(PinName pwm, PinName fwd, PinName rev);
        void speed (float);
        
    protected: 
        PwmOut _pwm;
        DigitalOut _fwd;
        DigitalOut _rev;

};

#endif