I changed the stepper library to accept half steps too.
The old constructors stay, so older sketches keep running with my update. I added a constructor to accept a boolean use_half_step:
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
);
This new constructor sets a private so the function
step() can determine if it should use 4- or 8-steps.
This allow a double-precision of stepper motors.
My question:
Anyone interested in taking this in the standard library? Otherwise, I change the name to be my private stepper lib and publish it like that on my site...
John