Stage-1 Students SoCEM / Mbed 2 deprecated ROCO104_base_Template

Dependencies:   mbed motor

motor.h

Committer:
martinsimpson
Date:
2018-02-01
Revision:
0:51c12cc34baf
Child:
1:3ca91ad8e927

File content as of revision 0:51c12cc34baf:

#ifndef _MOTOR_H_
#define _MOTOR_H_
#include "mbed.h"
class Motor
{
public:
    Motor(PinName pinName1, PinName pinName2);
    void Fwd(float time);
    void Rev(float time);
    void Period_in_ms(int msPeriod);
private:
    PwmOut pin1;
    PwmOut pin2;
};
#endif