A stepper library for Arduino. Modified from the original Arduino library.
Stepper(int number_of_steps, int motor_pin_1, int motor_pin_2);
Stepper(int number_of_steps, int motor_pin_1, int motor_pin_2, int motor_pin_3, int motor_pin_4);
Stepper(int number_of_steps, int motor_pin_1, int motor_pin_2, int motor_pin_3, int motor_pin_4, int use_half_step);
void setSpeed(long whatSpeed);
- speed in RPMs
void stepForward(int steps_to_move);
void stepBackward(int steps_to_move);
- set speed first!
- moves smoothly in the forward or backward direction
void stopMotor(void);
- shuts down pins to save energy and keep things cool.
void setHalfStep(int half_step);
- sets half-step mode on/off
int getHalfStep(void);
- returns current half-step mode