Credit for the author
Fork of sMotor by
Diff: sMotor.h
- Revision:
- 1:cf4869aef47f
- Parent:
- 0:4b3b9e047ce3
diff -r 4b3b9e047ce3 -r cf4869aef47f sMotor.h --- a/sMotor.h Thu Jun 14 12:16:40 2012 +0000 +++ b/sMotor.h Sat Sep 20 14:48:34 2014 +0000 @@ -19,9 +19,10 @@ sMotor(PinName A0, PinName A1, PinName A2, PinName A3); //motor constructor void step(int num_steps, int direction, int speed); - void anticlockwise(); - void clockwise(); - + void anticlockwise(int current_step); + void clockwise(int current_step); + void stop(step); + void delay(int delay_time); private: