Karl Nicolaus
/
6408_StepperTest2
upload 1
Stepper.h
- Committer:
- kanicolaus
- Date:
- 2019-03-06
- Revision:
- 1:1b53b0709422
- Parent:
- 0:52fb09e87581
File content as of revision 1:1b53b0709422:
#ifndef MBED_STEPPER_H #define MBED_STEPPER_H #endif #include "mbed.h" class stepper { public: stepper(PinName _en, PinName ms1, PinName ms2, PinName ms3, PinName _stepPin, PinName dir); void step(int microstep, int dir, float speed); void enable(); void disable(); private: DigitalOut en; BusOut microstepping; DigitalOut stepPin; DigitalOut direction; };