Stepper motor for grove

Dependencies:   sMotor

steppermotor.h

Committer:
math991e
Date:
2019-01-18
Revision:
0:714a74d01dc3
Child:
2:7b7c58bb9831

File content as of revision 0:714a74d01dc3:

/**
*#include "steppermotor.h"
*steppermotor gate(2200, 200);
*
*
*int main() {  
*   gate.open();
*   gate.close();
*}
**/


#ifndef STEPPERMOTOR
#define STEPPERMOTOR


class steppermotor{
    private:
        int step_speed;
        int numstep;
    public:
        steppermotor(int stepSpeed, int numStep);
        void setStepSpeed(int stepSpeed);
        int getStepSpeed();
        void setNumStep(int numStep);
        int getNumStep();
        void open();
        void close();
};

#endif