laurb9 / StepperDriver

Arduino library for A4988, DRV8825, DRV8834, DRV8880 and generic two-pin (DIR/STEP) stepper motor drivers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature on a couple of function

GiuseppePorcheddu opened this issue · comments

Is your feature request related to a problem? Please describe.
No problem, only a suggestion

Describe the solution you'd like
Returns values on a couple of functions. I added return values on :
setRPM()
setSpeedProfile()
to get back directly the current value... e.g.

MyFunction()
{
float oldRmp = setRPM(newRpm)
.... code
.... code
serRPM(oldRpm)
}

Attached the modified two files.

ToImprove.zip

Describe alternatives you've considered
No one

Additional context
Add any other context or screenshots about the feature request here.

Closing this ticket because now there are getRPM(), getSpeedProfile() etc so this functionality is available in a more explicit way.