A fork of a fine man's work. simplified. No microstepping etc, just a work in progress
Fork of BipoarStepperMotor by
Diff: stepperMotor.h
- Revision:
- 3:944e51dd1e4c
- Parent:
- 2:f1bab151e654
- Child:
- 4:a3d8d60147dd
--- a/stepperMotor.h Mon Sep 23 14:32:02 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -/* -############################################## -## Program Created by Harshavardan61 ## -############################################## - ---- harshavardan61@gmail.com ----- - -This library was made for 4-Phase Stepper Motors -I don't take any resposability for the damage caused to your equipment. - -*/ -#ifndef MBED_SMOTOR_H -#define MBED_SMOTOR_H - -#include "mbed.h" - -class sMotor { -public: - - sMotor(PinName A0, PinName A1, PinName A2, PinName A3); //motor constructor - - void step(int num_steps, int direction, int speed); - void anticlockwise(); - void clockwise(); - - -private: - - DigitalOut _A0; - DigitalOut _A1; - DigitalOut _A2; - DigitalOut _A3; - -}; - -#endif \ No newline at end of file