Is there an EasyGoPiGo3 API to turn off a servo positioning signal?
(While debugging my servo control methods, it was holding an awkward position. I needed to force a release of the servo positioning. )
PAN_SERVO="SERVO1"
TILT_SERVO="SERVO2"
egpg=easygopigo3.EasyGoPiGo3(use_mutex=True)
ps=egpg.servo_init(PAN_SERVO)
ts=egpg.servo_init(TILT_SERVO)
?? Turn off servo positioning signal before exiting ??
I wouldn’t always want to do this, but it would be nice to have a “servos_off.py”
You can use set_servo to set the pulse width to 0uS (turn off the signal) which will cause the servo to float. To call set_servo to float the servos with your code, you can use something like this: