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

Is there a built in way to make it wait until a position is met? #9

Open
jacobmcclellan opened this issue Jan 19, 2021 · 0 comments
Open

Comments

@jacobmcclellan
Copy link

jacobmcclellan commented Jan 19, 2021

Hey, so I got everything working properly but I was wondering if there is a way to make the python script wait until the servo reaches the specified position. For instance, if I wanted to make a series of moves one after another I would do like. (servo1.move(100) \n servo1.move(500)) it will continue on to 500 before it reaches 100. Is there a built-in command to make it wait? right now I am just using time.sleep and thinking about using if commands to make sure it hit the target number. Thanks in advance. (I am not using the servobus part and only the lewansoul_lx16a. If I didn't write this question in a way that makes sense I can re-word it and try and make it make more sense. Also thank you for making this code, it has been very helpful so far!

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