alextaujenis / RBD_Motor

Arduino Motor Library - Control many motors.
https://robotsbigdata.com/docs-arduino-motor.html
MIT License
10 stars 4 forks source link

Added getters for motor pins #2

Closed ghost closed 4 years ago

ghost commented 7 years ago

Added getters for private vars: _pwm_pin, _reverse_pin, _forward_pin. No setters tho.

alextaujenis commented 4 years ago

This is a great idea, and I would love to support this if there was a strong need to add this code to the library.

@Smartheads can you tell me the context in which you'd like to refer back to the pins at runtime? Can you show me a sketch or explain the scenario where this is necessary?

Since this pull request is from 2017 and there haven't been any requests like it, before or after, or for any of the other RBD libraries; I'm going to close and comment on this PR. If you'd like to re-open this issue with a burning desire to add this functionality then I'm all ears and let's try this again.