Test
FermeStepper.h
- Committer:
- fermedicius
- Date:
- 2021-01-11
- Revision:
- 0:5ec996c00568
File content as of revision 0:5ec996c00568:
#ifndef FERMESTEPPER_H #define FERMESTEPPER_H #include "mbed.h" class fermeMotor { public: fermeMotor(PinName A0,PinName A1, PinName A2, PinName A3, PinName B0,PinName B1, PinName B2, PinName B3); //motor constructor void fstep(int num_stepsA, int num_stepsB, int directionA, int speed); void anticlockwise(int flagA, int flagB, int motorSpeed); void clockwise(int flagA, int flagB, int motorSpeed); private: DigitalOut _A0; DigitalOut _A1; DigitalOut _A2; DigitalOut _A3; DigitalOut _B0; DigitalOut _B1; DigitalOut _B2; DigitalOut _B3; }; #endif