laurb9 / StepperDriver

Arduino library for A4988, DRV8825, DRV8834, DRV8880 and generic two-pin (DIR/STEP) stepper motor drivers
MIT License
557 stars 228 forks source link

Feature on a couple of function #83

Closed GiuseppePorcheddu closed 4 years ago

GiuseppePorcheddu commented 5 years ago

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.

laurb9 commented 4 years ago

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