Inverted Pendulum / Mbed 2 deprecated IP-Interface

Dependencies:   mbed QEI

Motor/Motor.h

Committer:
dlweakley
Date:
2016-11-11
Revision:
6:8d2171811f14
Child:
8:2abfdbf5a3b8

File content as of revision 6:8d2171811f14:

#ifndef MBED_MOTOR_H
#define MBED_MOTOR_H
 
#include "mbed.h"
 
class Motor {
public:
   Motor(PinName _M1PWM, PinName _M2PWM, PinName _M1DIR, PinName _M2DIR, PinName _D2, int signal_wait = 0, int step_wait = 500);
    void clockwise();
    void anticlockwise();
private:  
    DigitalOut M1PWM;
    DigitalOut M2PWM;
    DigitalOut M1DIR;
    DigitalOut M2DIR;
    DigitalOut D2;
    
    int step_wait;
    int signal_wait;
};
 
#endif