where software is the directory where I downloaded the software
Since these programs are run with the super user, and running with super user erases the PYTHONPATH by default, we need to explicitly keep the PYTHONPATH when running as super user
sudo visudo -f /etc/sudoers.d/custom
this creates a custom file rather than directly editing sudoers
by default this uses nano to edit the file
add Defaults env_keep += "PYTHONPATH" to the file and exit
Running the tutorial demo
Download the additional
code used to control the servo
this is in the same github repo as the code from the previous tutorial
it contains a utility function that allows for controlling the servo based on the desired angle of the servo arm rather than with pulse widths