Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Stepper.h
- Revision:
- 0:a1d256e2cd41
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Stepper.h Thu May 21 14:21:25 2015 +0000 @@ -0,0 +1,19 @@ +#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; +}; \ No newline at end of file