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

Negative servo positions #2

Open
JamesNewton opened this issue Feb 4, 2021 · 1 comment
Open

Negative servo positions #2

JamesNewton opened this issue Feb 4, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@JamesNewton
Copy link
Owner

All other numbers in the system are positive long integers. e.g. pins can't be negative, delays can't go back in time, PWM values must be positive, etc... Servos /can/ go backwards.

Add an offset so that 0S actually goes to the maximum negative angle? That seems dangerous.

Add a '-' command that inverts n? e.g. 90-S

@JamesNewton JamesNewton added the enhancement New feature or request label Feb 4, 2021
@JamesNewton
Copy link
Owner Author

Use a flag, and set it if we get a "-" while n is zero. Need to check that /before/ the main switch, before n is set to p. This overloads "-" because it's also used for high state in i2c diagrams.

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

No branches or pull requests

1 participant