Using the above code can make the servo rotate slowly back and forth between
300 and 400, but this method of controlling the servo also has great drawbacks. When
the program is executed to the slow motion part of the servo, it will be blocked, which
will seriously affect the program. Therefore, a multi-threaded solution is provided in
our robot product program to solve this problem.
72
Need help?
Do you have a question about the PiCar-Pro and is the answer not in the manual?