Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please make MICROSECONDS_FOR_180 and MICROSECONDS_FOR_0 configurable per servo #2

Open
sglebs opened this issue Dec 31, 2021 · 0 comments

Comments

@sglebs
Copy link

sglebs commented Dec 31, 2021

I suggest making ServoManager::createServo take 2 extra params: "microseconds for 0" and "microseconds to 180". As default / backwards compatibility in the API, when nothing is passed you can use the current hardcoded constants. Storing them in instance variables allows for this flexibility. Other libs have a similar approach, see https://www.arduino.cc/en/Reference/ServoAttach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant