stepper motor unipolar half mode sla 7026/7033
STEPPER.h
- Committer:
- lego
- Date:
- 2016-07-11
- Revision:
- 0:3c13a1d67866
File content as of revision 0:3c13a1d67866:
#include "mbed.h" #define CCW 1 #define CW 0 class STEPPER { public: STEPPER(PinName a, PinName a_, PinName b, PinName b_, int dir); ~STEPPER(); void MotorStart(); void MotorOff(); void SetSpeed(int speed); void MotorControl(); int step_cw[8]; int step_ccw[8]; int Speed; int count; int Direction; private: BusOut MotorPin; Ticker Motor; };