Closed kazumasa-kusaba closed 1 year ago
And do I need to call "setMicrostep" method if I want to change microstep? It looks like all the ms pins are set HIGH in the begin method.
I'm sorry, the above question is my misunderstanding...
A4988::setMicrostep(short microsteps)
method will be called in BasicStepperDriver::begin(float rpm, short microsteps)
method and all the ms pins
will be set to the appropriate values.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Thank you for developing this useful library. I have 2 questions about the value of
"microsteps"
.What should be set for the "microsteps" value?
I'm using
A4988
. What should I set to the following methods?https://github.com/laurb9/StepperDriver/blob/be6a215849144099273e890cca75dbf4ef233787/src/A4988.cpp#L44
https://github.com/laurb9/StepperDriver/blob/be6a215849144099273e890cca75dbf4ef233787/src/A4988.cpp#L61
The value should be set directly to
1
or2
or4
or8
or16
?And do I need to call
"setMicrostep
" method if I want to change microstep?It looks like all the
ms pins
are set HIGH in the begin method.https://github.com/laurb9/StepperDriver/blob/be6a215849144099273e890cca75dbf4ef233787/src/A4988.cpp#L51