Test

stepperMotor.h

Committer:
fermedicius
Date:
2021-01-11
Revision:
0:dd286de4bc2f

File content as of revision 0:dd286de4bc2f:

#ifndef MBED_SMOTOR_H
#define MBED_SMOTOR_H

#include "mbed.h"

class sMotor {
public:

    sMotor(PinName A0,PinName A1, PinName A2, PinName A3); //motor constructor

    void step(int num_steps, int direction, int speed);
    void anticlockwise();
    void clockwise();
    void off();


private:

    DigitalOut _A0;
    DigitalOut _A1;
    DigitalOut _A2;
    DigitalOut _A3;

};

#endif